Provides interfaces to do pool allocation for objects. More...
Static Public Member Functions | |
static void | initialize (option const &opts) |
Initializes the memory_allocator. More... | |
static void | finalize (void) |
Finalizes the memory_allocator. More... | |
static void * | allocate (std::size_t) |
Allocates the requested number of bytes. More... | |
static void | deallocate (void *, std::size_t) noexcept |
Returns the allocated storage. More... | |
Provides interfaces to do pool allocation for objects.
The allocation and deallocation are not thread-safe, but they are thread-local.
|
static |
Initializes the memory_allocator.
opts | option object to initialize the memory allocator with. |
|
static |
Finalizes the memory_allocator.
It will print allocation information if STAPL_ENABLE_MANAGED_ALLOC_STATISTICS
is set.
|
static |
Allocates the requested number of bytes.
It will keep track of the allocations if STAPL_ENABLE_MANAGED_ALLOC_STATISTICS
is set.
|
staticnoexcept |
Returns the allocated storage.
It will keep track of the allocations if STAPL_ENABLE_MANAGED_ALLOC_STATISTICS
is set.