Bitcoin ABC 0.30.5
P2P Digital Currency
|
Create an arena from locked pages. More...
Public Member Functions | |
LockedPageArena (LockedPageAllocator *alloc_in, void *base_in, size_t size, size_t align) | |
~LockedPageArena () | |
Public Member Functions inherited from Arena | |
Arena (void *base, size_t size, size_t alignment) | |
virtual | ~Arena () |
Arena (const Arena &other)=delete | |
Arena & | operator= (const Arena &)=delete |
void * | alloc (size_t size) |
Allocate size bytes from this arena. More... | |
void | free (void *ptr) |
Free a previously allocated chunk of memory. More... | |
Stats | stats () const |
Get arena usage statistics. More... | |
bool | addressInArena (void *ptr) const |
Return whether a pointer points inside this arena. More... | |
Private Attributes | |
void * | base |
size_t | size |
LockedPageAllocator * | allocator |
Create an arena from locked pages.
Definition at line 199 of file lockedpool.h.
LockedPool::LockedPageArena::LockedPageArena | ( | LockedPageAllocator * | alloc_in, |
void * | base_in, | ||
size_t | size, | ||
size_t | align | ||
) |
Definition at line 377 of file lockedpool.cpp.
LockedPool::LockedPageArena::~LockedPageArena | ( | ) |
Definition at line 382 of file lockedpool.cpp.
|
private |
Definition at line 208 of file lockedpool.h.
|
private |
Definition at line 206 of file lockedpool.h.
|
private |
Definition at line 207 of file lockedpool.h.