Class MemPool

Class Documentation

class MemPool

Public Types

using freeList_t = concurrent::LoFFLi

Public Functions

MemPool(const cxx::greater_or_equal<uint32_t, CHUNK_MEMORY_ALIGNMENT> chunkSize, const cxx::greater_or_equal<uint32_t, 1> numberOfChunks, posix::Allocator &managementAllocator, posix::Allocator &chunkMemoryAllocator) noexcept
MemPool(const MemPool&) = delete
MemPool(MemPool&&) = delete
MemPool &operator=(const MemPool&) = delete
MemPool &operator=(MemPool&&) = delete
void *getChunk() noexcept
uint32_t getChunkSize() const noexcept
uint32_t getChunkCount() const noexcept
uint32_t getUsedChunks() const noexcept
uint32_t getMinFree() const noexcept
MemPoolInfo getInfo() const noexcept
void freeChunk(const void *chunk) noexcept

Public Static Attributes

static constexpr uint64_t CHUNK_MEMORY_ALIGNMENT = 8U