Skip to content

iox::mepoo::MemPool🔗

Public Types🔗

Name
using concurrent::LoFFLi freeList_t

Public Functions🔗

Name
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)
MemPool(const MemPool & )
MemPool(MemPool && )
MemPool & operator=(const MemPool & )
MemPool & operator=(MemPool && )
void * getChunk()
uint32_t getChunkSize() const
uint32_t getChunkCount() const
uint32_t getUsedChunks() const
uint32_t getMinFree() const
MemPoolInfo getInfo() const
void freeChunk(const void * chunk)

Public Attributes🔗

Name
constexpr uint64_t CHUNK_MEMORY_ALIGNMENT

Public Types Documentation🔗

using freeList_t🔗

using iox::mepoo::MemPool::freeList_t =  concurrent::LoFFLi;

Public Functions Documentation🔗

function MemPool🔗

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
)

function MemPool🔗

MemPool(
    const MemPool & 
)

function MemPool🔗

MemPool(
    MemPool && 
)

function operator=🔗

MemPool & operator=(
    const MemPool & 
)

function operator=🔗

MemPool & operator=(
    MemPool && 
)

function getChunk🔗

void * getChunk()

function getChunkSize🔗

uint32_t getChunkSize() const

function getChunkCount🔗

uint32_t getChunkCount() const

function getUsedChunks🔗

uint32_t getUsedChunks() const

function getMinFree🔗

uint32_t getMinFree() const

function getInfo🔗

MemPoolInfo getInfo() const

function freeChunk🔗

void freeChunk(
    const void * chunk
)

Public Attributes Documentation🔗

variable CHUNK_MEMORY_ALIGNMENT🔗

static constexpr uint64_t CHUNK_MEMORY_ALIGNMENT = 8U;

Updated on 26 April 2021 at 15:31:02 CEST