LockedPageAllocator

OS-dependent allocation and deallocation of locked/pinned memory pages. Abstract base class.

Synopsis

Declared in <support/lockedpool.h>

class LockedPageAllocator;

Member Functions

NameDescription
~LockedPageAllocator [destructor] [virtual]Destroys the allocator.
AllocateLocked [virtual]Allocate and lock memory pages. If len is not a multiple of the system page size, it is rounded up. Returns nullptr in case of allocation failure.
FreeLocked [virtual]Unlock and free memory pages. Clear the memory before unlocking.
GetLimit [virtual]Get the total limit on the amount of memory that may be locked by this process, in bytes. Return size_t max if there is no limit or the limit is unknown. Return 0 if no memory can be locked at all.