tin  1.5.9
tsm::runtime::storage::static_ring< Capacity > Struct Template Reference

#include <static_ring.h>

Collaboration diagram for tsm::runtime::storage::static_ring< Capacity >:
Collaboration graph

Public Types

template<typename Event >
using queue = fixed_ring_queue< Event, Capacity >
 

Static Public Attributes

static constexpr std::size_t capacity = Capacity
 

Detailed Description

template<std::size_t Capacity>
struct tsm::runtime::storage::static_ring< Capacity >

Storage policy that creates fixed-ring queues for any event value type.

Runtime policies name storage as a template family. static_ring<N> supplies that family while keeping the event-erased queue type local to each runtime. This type is the default bare-metal storage backend because it has fixed size, no allocation, and no OS dependency.

Member Typedef Documentation

◆ queue

template<std::size_t Capacity>
template<typename Event >
using tsm::runtime::storage::static_ring< Capacity >::queue = fixed_ring_queue<Event, Capacity>

Member Data Documentation

◆ capacity

template<std::size_t Capacity>
constexpr std::size_t tsm::runtime::storage::static_ring< Capacity >::capacity = Capacity
staticconstexpr

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