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

Public Member Functions

 BlockPoolSlot ()
stk_blockpool_t * pool ()
const stk_blockpool_t * pool () const

Public Attributes

BlockPoolMem mem
bool busy

Detailed Description

Definition at line 79 of file stk_c_memory.cpp.

Constructor & Destructor Documentation

◆ BlockPoolSlot()

BlockPoolSlot::BlockPoolSlot ( )
inline

Definition at line 81 of file stk_c_memory.cpp.

81 : busy(false)
82 {}

References busy.

Member Function Documentation

◆ pool() [1/2]

stk_blockpool_t * BlockPoolSlot::pool ( )
inline

Definition at line 84 of file stk_c_memory.cpp.

84{ return reinterpret_cast<stk_blockpool_t *>(reinterpret_cast<void *>(mem.data)); }
struct stk_blockpool_t stk_blockpool_t
Opaque handle to a stk::memory::BlockMemoryPool instance.
BlockPoolMem mem

References mem.

◆ pool() [2/2]

const stk_blockpool_t * BlockPoolSlot::pool ( ) const
inline

Definition at line 85 of file stk_c_memory.cpp.

85{ return reinterpret_cast<const stk_blockpool_t *>(reinterpret_cast<const void *>(mem.data)); }

References mem.

Member Data Documentation

◆ busy

bool BlockPoolSlot::busy

Definition at line 88 of file stk_c_memory.cpp.

Referenced by BlockPoolSlot(), and stk_blockpool_destroy().

◆ mem

BlockPoolMem BlockPoolSlot::mem

Definition at line 87 of file stk_c_memory.cpp.

Referenced by pool(), pool(), stk_blockpool_create(), and stk_blockpool_create_static().


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