|
tin
1.5.9
|
#include <sync.h>

Classes | |
| class | receive_awaitable |
| class | send_awaitable |
Public Types | |
| using | value_type = T |
| using | overflow_policy = OverflowPolicy |
Public Member Functions | |
| bool | try_send (T const &value) |
| bool | try_send (T &&value) |
| bool | try_send_from_isr (T const &value) |
| bool | try_send_from_isr (T &&value) |
| bool | try_receive (T &value) |
| bool | empty () const noexcept |
| bool | full () const noexcept |
| std::size_t | size () const noexcept |
| bool | latest (T &value) const |
| runtime::sender< T > | sender () noexcept |
| runtime::receiver< T > | receiver () noexcept |
| runtime::latest_reader< T > | latest_reader () const noexcept |
| template<typename Value > | |
| auto | send (Value &&value) |
| receive_awaitable | receive () noexcept |
Static Public Member Functions | |
| static constexpr std::size_t | capacity () noexcept |
Static Public Attributes | |
| static constexpr std::size_t | static_capacity = Capacity |
Fixed-capacity cooperative channel.
Sends are non-blocking and report whether the value was accepted. Receivers can either poll with try_receive or await receive.
| using tsm::runtime::channel< T, Capacity, OverflowPolicy, MaxWaiters >::overflow_policy = OverflowPolicy |
| using tsm::runtime::channel< T, Capacity, OverflowPolicy, MaxWaiters >::value_type = T |
|
inlinestaticconstexprnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
staticconstexpr |