pion-net
4.0.9
|
#include <PionPoolAllocator.hpp>
Public Member Functions | |
FixedSizeAlloc (std::size_t size) | |
Public Attributes | |
boost::mutex | m_mutex |
used to protect access to the memory pool | |
std::size_t | m_size |
size of memory blocks managed by this allocator, in bytes | |
boost::pool | m_pool |
underlying pool allocator used for memory management | |
FreeListPtr | m_free_ptr |
pointer to a list of free nodes (for lock-free cache) |
data structure used to represent a pooled memory allocator for blocks of a specific size
Definition at line 204 of file PionPoolAllocator.hpp.
pion::PionPoolAllocator< MinSize, MaxSize >::FixedSizeAlloc::FixedSizeAlloc | ( | std::size_t | size | ) | [inline] |
constructs a new fixed-size pool allocator
size | size of memory blocks managed by this allocator, in bytes |
Definition at line 211 of file PionPoolAllocator.hpp.