Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

LockedPool::LockedPageArena Class Reference

Create an arena from locked pages. More...

+ Inheritance diagram for LockedPool::LockedPageArena:
+ Collaboration diagram for LockedPool::LockedPageArena:

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
 
Arenaoperator= (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
 
LockedPageAllocatorallocator
 

Detailed Description

Create an arena from locked pages.

Definition at line 177 of file lockedpool.h.

Constructor & Destructor Documentation

◆ LockedPageArena()

LockedPool::LockedPageArena::LockedPageArena ( LockedPageAllocator alloc_in,
void *  base_in,
size_t  size,
size_t  align 
)

Definition at line 349 of file lockedpool.cpp.

◆ ~LockedPageArena()

LockedPool::LockedPageArena::~LockedPageArena ( )

Definition at line 353 of file lockedpool.cpp.

References LockedPool::allocator.

Member Data Documentation

◆ allocator

LockedPageAllocator* LockedPool::LockedPageArena::allocator
private

Definition at line 185 of file lockedpool.h.

◆ base

void* LockedPool::LockedPageArena::base
private

Definition at line 183 of file lockedpool.h.

◆ size

size_t LockedPool::LockedPageArena::size
private

Definition at line 184 of file lockedpool.h.


The documentation for this class was generated from the following files:
Released under the MIT license