![]() |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
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... | |
OS-dependent memory page locking/unlocking.
Defined as policy class to make stubbing for test possible.
Definition at line 112 of file allocators.h.
| 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 41 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 50 of file allocators.cpp.
1.8.17