Thread-safe class to keep track of locked (ie, non-swappable) memory pages.
static boost::once_flag init_flag
bool Unlock(const void *addr, size_t len)
Unlock memory pages.
Singleton class to keep track of locked (ie, non-swappable) memory pages, for use in std::allocator t...
OS-dependent memory page locking/unlocking.
static LockedPageManager * _instance
bool Lock(const void *addr, size_t len)
Lock memory pages.