|
SuperTinyKernel™ RTOS 1.08.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
Classes | |
| struct | BlockPoolStorage |
| Storage holder. Kept as a separate (first) base class so that the buffer exists before BlockMemoryPool's constructor links the free-list into it. More... | |
| struct | BytePoolStorage |
| Storage holder. Kept as a separate (first) base class so that the buffer exists before BytePool's constructor writes the first block header into it. More... | |
Functions | |
| STK_STATIC_ASSERT_DESC (BytePool::BLOCK_ALIGN >=MemoryAllocator::MIN_ALIGNMENT, "STK_MEMORY_BYTEPOOL_ALIGN_DEFAULT is below MemoryAllocator::MIN_ALIGNMENT: the default allocator would violate its contract") | |
| static BytePool & | DefaultHeapPool () |
| Get the default heap pool, creating it on the first call. | |
Variables | |
| static uint8_t | g_DefaultHeapArea [(8192U)] |
| static uint8_t | g_DefaultHeapPoolMem [sizeof(BytePool)] |
| static BytePool *volatile | g_DefaultHeapPool = nullptr |
|
inlinestatic |
Get the default heap pool, creating it on the first call.
Definition at line 58 of file stk_memory_allocator_default.h.
References g_DefaultHeapArea, g_DefaultHeapPool, and g_DefaultHeapPoolMem.
Referenced by stk::memory::MemoryAllocator::Weak::Allocate(), stk::memory::MemoryAllocator::Weak::Free(), and stk::memory::MemoryAllocator::Weak::GetStats().
| stk::memory::detail::STK_STATIC_ASSERT_DESC | ( | BytePool::BLOCK_ALIGN >=MemoryAllocator::MIN_ALIGNMENT | , |
| "STK_MEMORY_BYTEPOOL_ALIGN_DEFAULT is below MemoryAllocator::MIN_ALIGNMENT: the default allocator would violate its contract" | ) |
|
static |
Definition at line 52 of file stk_memory_allocator_default.h.
Referenced by DefaultHeapPool().
|
static |
Definition at line 54 of file stk_memory_allocator_default.h.
Referenced by DefaultHeapPool().
|
static |
Definition at line 53 of file stk_memory_allocator_default.h.
Referenced by DefaultHeapPool().