|
hdac SDK
SDK for hdac blockchain development
|
#include <allocators.h>
Public 멤버 함수 | |
| LockedPageManagerBase (size_t page_size) | |
| void | LockRange (void *p, size_t size) |
| void | UnlockRange (void *p, size_t size) |
| int | GetLockedPageCount () |
Thread-safe class to keep track of locked (ie, non-swappable) memory pages.
Memory locks do not stack, that is, pages which have been locked several times by calls to mlock() will be unlocked by a single call to munlock(). This can result in keying material ending up in swap when those functions are used naively. This class simulates stacking memory locks by keeping a counter per page.
1.8.11