|
Corium 1.1.0
High-Performance Zero-Heap C++20 MPSC Application Runtime
|
Statically-allocated fixed-capacity memory pool for coroutine state frames. Eliminates heap allocations and guarantees deterministic O(1) coroutine frame allocation. More...
#include <FramePool.hpp>
Collaboration diagram for corium::async::StaticFramePool< MaxFrames, FrameSize >:Classes | |
| struct | Slot |
Static Public Member Functions | |
| static std::size_t | activeCount () noexcept |
| Number of active frames currently allocated from the pool. | |
| static void * | allocate (std::size_t size) noexcept |
| static void | deallocate (void *ptr, std::size_t) noexcept |
| static void | reset () noexcept |
| Reset all pool slots to available state. | |
Static Public Attributes | |
| static constexpr std::size_t | frame_size = FrameSize |
| static constexpr std::size_t | max_frames = MaxFrames |
Statically-allocated fixed-capacity memory pool for coroutine state frames. Eliminates heap allocations and guarantees deterministic O(1) coroutine frame allocation.
| MaxFrames | Maximum number of concurrent active coroutine frames. |
| FrameSize | Maximum size in bytes reserved for each coroutine frame. |
|
inlinestaticnoexcept |
Number of active frames currently allocated from the pool.
|
inlinestaticnoexcept |
Here is the caller graph for this function:
|
inlinestaticnoexcept |
Here is the caller graph for this function:
|
inlinestaticnoexcept |
Reset all pool slots to available state.
|
staticconstexpr |
|
staticconstexpr |