Master Core  v0.0.9 - 49a5c0d97abf09ef2911ddfe8d9551df59f9efd3-dirty
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions
MemoryPageLocker Class Reference

OS-dependent memory page locking/unlocking. More...

#include <allocators.h>

Public Member Functions

bool Lock (const void *addr, size_t len)
 Lock memory pages. More...
 
bool Unlock (const void *addr, size_t len)
 Unlock memory pages. More...
 

Detailed Description

OS-dependent memory page locking/unlocking.

Defined as policy class to make stubbing for test possible.

Definition at line 112 of file allocators.h.

Member Function Documentation

bool MemoryPageLocker::Lock ( const void *  addr,
size_t  len 
)

Lock memory pages.

addr and len must be a multiple of the system page size

Definition at line 46 of file allocators.cpp.

bool MemoryPageLocker::Unlock ( const void *  addr,
size_t  len 
)

Unlock memory pages.

addr and len must be a multiple of the system page size

Definition at line 55 of file allocators.cpp.


The documentation for this class was generated from the following files: