tin  1.5.9
tsm::runtime::runtime_group< Runtimes > Class Template Reference

#include <executor.h>

Inheritance diagram for tsm::runtime::runtime_group< Runtimes >:
Inheritance graph
Collaboration diagram for tsm::runtime::runtime_group< Runtimes >:
Collaboration graph

Public Member Functions

constexpr runtime_group (Runtimes &... runtimes)
 
bool step ()
 
std::size_t run_ready ()
 
bool empty () const
 
std::size_t pending_events () const
 

Detailed Description

template<typename... Runtimes>
class tsm::runtime::runtime_group< Runtimes >

Runtime group for deterministic multi-runtime stepping.

The group stores pointers to runtimes owned by the application. One step attempts at most one unit of work per runtime in declaration order. This gives applications one object to step without making the group itself an HSM.

Constructor & Destructor Documentation

◆ runtime_group()

template<typename... Runtimes>
constexpr tsm::runtime::runtime_group< Runtimes >::runtime_group ( Runtimes &...  runtimes)
inlineexplicitconstexpr

Member Function Documentation

◆ empty()

template<typename... Runtimes>
bool tsm::runtime::runtime_group< Runtimes >::empty ( ) const
inline

◆ pending_events()

template<typename... Runtimes>
std::size_t tsm::runtime::runtime_group< Runtimes >::pending_events ( ) const
inline

◆ run_ready()

template<typename... Runtimes>
std::size_t tsm::runtime::runtime_group< Runtimes >::run_ready ( )
inline

◆ step()

template<typename... Runtimes>
bool tsm::runtime::runtime_group< Runtimes >::step ( )
inline

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