tin  1.5.9
static_ring.h File Reference

Fixed-capacity ring queue storage for runtime events. More...

#include <array>
#include <cstddef>
#include <type_traits>
#include <utility>
#include "tsm/runtime/policy.h"
Include dependency graph for static_ring.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  tsm::runtime::storage::fixed_ring_queue< Event, Capacity >
 
struct  tsm::runtime::storage::static_ring< Capacity >
 
struct  tsm::runtime::storage::static_storage_tag
 
struct  tsm::runtime::storage::freertos_storage_tag
 
struct  tsm::runtime::storage::zephyr_storage_tag
 
struct  tsm::runtime::storage::target_storage< Capacity, static_storage_tag >
 
class  tsm::queue< T, StoragePolicy, OverflowPolicy >
 

Namespaces

 tsm
 
 tsm::runtime
 
 tsm::runtime::storage
 

Typedefs

using tsm::runtime::storage::active_storage_tag = freertos_storage_tag
 
template<std::size_t Capacity>
using tsm::runtime::storage::target_queue = typename target_storage< Capacity >::type
 
template<std::size_t Capacity>
using tsm::static_storage = runtime::storage::static_ring< Capacity >
 
template<std::size_t Capacity>
using tsm::target_storage = runtime::storage::target_queue< Capacity >
 

Detailed Description

Fixed-capacity ring queue storage for runtime events.

Provides the default queue storage backend for host and bare-metal builds.

Use this when a runtime or channel needs FIFO storage with a compile-time capacity and no allocator. The ring stores values and reports full/empty state; dispatch policy, wakeups, and event meaning stay in the caller.