SuperTinyKernel™ RTOS 1.06.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
Loading...
Searching...
No Matches
StkMemPool Class Reference
Collaboration diagram for StkMemPool:

Public Member Functions

 StkMemPool (uint32_t cap, uint32_t raw_block_size, const char *name, uint8_t *ext_storage)
 StkMemPool (uint32_t cap, uint32_t raw_block_size, const char *name)

Public Attributes

stk::memory::BlockMemoryPool m_mpool
bool m_cb_owned

Detailed Description

Definition at line 309 of file cmsis_os2_stk.cpp.

Constructor & Destructor Documentation

◆ StkMemPool() [1/2]

StkMemPool::StkMemPool ( uint32_t cap,
uint32_t raw_block_size,
const char * name,
uint8_t * ext_storage )
inlineexplicit

Definition at line 313 of file cmsis_os2_stk.cpp.

315 : m_mpool(static_cast<size_t>(cap),
316 static_cast<size_t>(raw_block_size),
317 ext_storage,
319 name),
320 m_cb_owned(true)
321 {}
static constexpr size_t AlignBlockSize(size_t raw_size)
Round a raw block size up to the nearest multiple of BLOCK_ALIGN.
stk::memory::BlockMemoryPool m_mpool

References m_cb_owned, and m_mpool.

◆ StkMemPool() [2/2]

StkMemPool::StkMemPool ( uint32_t cap,
uint32_t raw_block_size,
const char * name )
inlineexplicit

Definition at line 324 of file cmsis_os2_stk.cpp.

325 : m_mpool(static_cast<size_t>(cap),
326 static_cast<size_t>(raw_block_size),
327 name),
328 m_cb_owned(true)
329 {}

References m_cb_owned, and m_mpool.

Member Data Documentation

◆ m_cb_owned

bool StkMemPool::m_cb_owned

Definition at line 333 of file cmsis_os2_stk.cpp.

Referenced by StkMemPool(), and StkMemPool().

◆ m_mpool

stk::memory::BlockMemoryPool StkMemPool::m_mpool

The documentation for this class was generated from the following file: