Dash Core  0.12.2.1
P2P Digital Currency
MemoryPageLocker Class Reference

#include <pagelocker.h>

Public Member Functions

bool Lock (const void *addr, size_t len)
 
bool Unlock (const void *addr, size_t len)
 

Detailed Description

OS-dependent memory page locking/unlocking. Defined as policy class to make stubbing for test possible.

Definition at line 109 of file pagelocker.h.

Member Function Documentation

◆ Lock()

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 50 of file pagelocker.cpp.

◆ Unlock()

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 59 of file pagelocker.cpp.


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