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
BlockPoolSlot Struct Reference

Public Member Functions

 BlockPoolSlot ()
stk_blockpool_tpool ()
const stk_blockpool_tpool () const

Public Attributes

Word storage [StkGetWordCountForType< stk_blockpool_t >()]
bool busy

Detailed Description

Definition at line 73 of file stk_c_memory.cpp.

Constructor & Destructor Documentation

◆ BlockPoolSlot()

BlockPoolSlot::BlockPoolSlot ( )
inline

Definition at line 75 of file stk_c_memory.cpp.

75 : busy(false)
76 {}

References busy.

Member Function Documentation

◆ pool() [1/2]

stk_blockpool_t * BlockPoolSlot::pool ( )
inline

Definition at line 78 of file stk_c_memory.cpp.

78{ return reinterpret_cast<stk_blockpool_t *>(reinterpret_cast<void *>(storage)); }
struct stk_blockpool_t stk_blockpool_t
Opaque handle to a stk::memory::BlockMemoryPool instance.
Word storage[StkGetWordCountForType< stk_blockpool_t >()]

References storage.

◆ pool() [2/2]

const stk_blockpool_t * BlockPoolSlot::pool ( ) const
inline

Definition at line 79 of file stk_c_memory.cpp.

79{ return reinterpret_cast<const stk_blockpool_t *>(reinterpret_cast<const void *>(storage)); }

References storage.

Member Data Documentation

◆ busy

bool BlockPoolSlot::busy

Definition at line 82 of file stk_c_memory.cpp.

Referenced by BlockPoolSlot(), and stk_blockpool_destroy().

◆ storage

Word BlockPoolSlot::storage[StkGetWordCountForType< stk_blockpool_t >()]

Definition at line 81 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: