Changeset View
Changeset View
Standalone View
Standalone View
src/support/lockedpool.cpp
Show All 21 Lines | |||||
#else | #else | ||||
#include <climits> // for PAGESIZE | #include <climits> // for PAGESIZE | ||||
#include <sys/mman.h> // for mmap | #include <sys/mman.h> // for mmap | ||||
#include <sys/resource.h> // for getrlimit | #include <sys/resource.h> // for getrlimit | ||||
#include <unistd.h> // for sysconf | #include <unistd.h> // for sysconf | ||||
#endif | #endif | ||||
#include <algorithm> | #include <algorithm> | ||||
#include <memory> | |||||
LockedPoolManager *LockedPoolManager::_instance = nullptr; | LockedPoolManager *LockedPoolManager::_instance = nullptr; | ||||
std::once_flag LockedPoolManager::init_flag; | std::once_flag LockedPoolManager::init_flag; | ||||
/*******************************************************************************/ | /*******************************************************************************/ | ||||
// Utilities | // Utilities | ||||
// | // | ||||
/** Align up to power of 2 */ | /** Align up to power of 2 */ | ||||
▲ Show 20 Lines • Show All 337 Lines • Show Last 20 Lines |