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
anonymous_namespace{threadx_stk.cpp}::StkBytePool Class Referencefinal
Collaboration diagram for anonymous_namespace{threadx_stk.cpp}::StkBytePool:

Public Member Functions

 StkBytePool (uint8_t *start, size_t size, const char *name)
stk::memory::BytePool & Pool ()
bool IsValid () const
bool Contains (const void *mem) const

Public Attributes

StkBytePool * m_next

Private Member Functions

 STK_NONCOPYABLE_CLASS (StkBytePool)

Private Attributes

stk::memory::BytePool m_pool
uintptr_t m_lo
uintptr_t m_hi

Detailed Description

Definition at line 2145 of file threadx_stk.cpp.

Constructor & Destructor Documentation

◆ StkBytePool()

anonymous_namespace{threadx_stk.cpp}::StkBytePool::StkBytePool ( uint8_t * start,
size_t size,
const char * name )
inlineexplicit

Definition at line 2150 of file threadx_stk.cpp.

2151 : m_next(nullptr),
2152 m_pool(start, size, name),
2153 m_lo(reinterpret_cast<uintptr_t>(start)),
2154 m_hi(reinterpret_cast<uintptr_t>(start) + size)
2155 {}

References m_hi, m_lo, m_next, and m_pool.

Referenced by STK_NONCOPYABLE_CLASS().

Here is the caller graph for this function:

Member Function Documentation

◆ Contains()

bool anonymous_namespace{threadx_stk.cpp}::StkBytePool::Contains ( const void * mem) const
inline

Definition at line 2162 of file threadx_stk.cpp.

2163 {
2164 const uintptr_t a = reinterpret_cast<uintptr_t>(mem);
2165 return ((a >= m_lo) && (a < m_hi));
2166 }

References m_hi, and m_lo.

Referenced by anonymous_namespace{threadx_stk.cpp}::BytePoolFind().

Here is the caller graph for this function:

◆ IsValid()

bool anonymous_namespace{threadx_stk.cpp}::StkBytePool::IsValid ( ) const
inline

Definition at line 2159 of file threadx_stk.cpp.

2159{ return m_pool.IsStorageValid(); }

References m_pool.

◆ Pool()

stk::memory::BytePool & anonymous_namespace{threadx_stk.cpp}::StkBytePool::Pool ( )
inline

Definition at line 2157 of file threadx_stk.cpp.

2157{ return m_pool; }

References m_pool.

Referenced by tx_byte_pool_info_get().

Here is the caller graph for this function:

◆ STK_NONCOPYABLE_CLASS()

anonymous_namespace{threadx_stk.cpp}::StkBytePool::STK_NONCOPYABLE_CLASS ( StkBytePool )
private

References StkBytePool().

Here is the call graph for this function:

Member Data Documentation

◆ m_hi

uintptr_t anonymous_namespace{threadx_stk.cpp}::StkBytePool::m_hi
private

Definition at line 2173 of file threadx_stk.cpp.

Referenced by Contains(), and StkBytePool().

◆ m_lo

uintptr_t anonymous_namespace{threadx_stk.cpp}::StkBytePool::m_lo
private

Definition at line 2172 of file threadx_stk.cpp.

Referenced by Contains(), and StkBytePool().

◆ m_next

◆ m_pool

stk::memory::BytePool anonymous_namespace{threadx_stk.cpp}::StkBytePool::m_pool
private

Definition at line 2171 of file threadx_stk.cpp.

Referenced by IsValid(), Pool(), and StkBytePool().


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