tin  1.5.9
tsm::irq_event< MaxWaiters > Class Template Reference

#include <sync.h>

Collaboration diagram for tsm::irq_event< MaxWaiters >:
Collaboration graph

Public Member Functions

void notify () noexcept
 
void notify_from_isr () noexcept
 
void reset () noexcept
 
bool is_set () const noexcept
 
auto wait () noexcept
 

Detailed Description

template<std::size_t MaxWaiters = 4U>
class tsm::irq_event< MaxWaiters >

Target-neutral interrupt or OS-event flag.

Drivers and interrupt adapters can call notify() or notify_from_isr(); coroutine tasks await wait() using the same cooperative scheduler path as event_flag. Platform headers decide how hardware or kernel primitives wake the executor thread/task.

Member Function Documentation

◆ is_set()

template<std::size_t MaxWaiters = 4U>
bool tsm::irq_event< MaxWaiters >::is_set ( ) const
inlinenoexcept

◆ notify()

template<std::size_t MaxWaiters = 4U>
void tsm::irq_event< MaxWaiters >::notify ( )
inlinenoexcept

◆ notify_from_isr()

template<std::size_t MaxWaiters = 4U>
void tsm::irq_event< MaxWaiters >::notify_from_isr ( )
inlinenoexcept

◆ reset()

template<std::size_t MaxWaiters = 4U>
void tsm::irq_event< MaxWaiters >::reset ( )
inlinenoexcept

◆ wait()

template<std::size_t MaxWaiters = 4U>
auto tsm::irq_event< MaxWaiters >::wait ( )
inlinenoexcept

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