tin  1.5.9
tsm::static_coroutine_arena< Bytes > Class Template Reference

#include <coroutine.h>

Collaboration diagram for tsm::static_coroutine_arena< Bytes >:
Collaboration graph

Public Member Functions

void * allocate (std::size_t bytes, std::size_t alignment) noexcept
 
std::size_t used () const noexcept
 
std::size_t capacity () const noexcept
 

Detailed Description

template<std::size_t Bytes>
class tsm::static_coroutine_arena< Bytes >

Fixed arena used for coroutine frame storage.

Allocation is monotonic because task frames are created once when an executor binds to a runtime. There is intentionally no heap fallback.

Member Function Documentation

◆ allocate()

template<std::size_t Bytes>
void* tsm::static_coroutine_arena< Bytes >::allocate ( std::size_t  bytes,
std::size_t  alignment 
)
inlinenoexcept

◆ capacity()

template<std::size_t Bytes>
std::size_t tsm::static_coroutine_arena< Bytes >::capacity ( ) const
inlinenoexcept

◆ used()

template<std::size_t Bytes>
std::size_t tsm::static_coroutine_arena< Bytes >::used ( ) const
inlinenoexcept

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