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