#include <modm/processing/fiber/latch.hpp>
|
constexpr | latch (std::ptrdiff_t expected) |
|
void | count_down (count_t n=1) |
|
bool | try_wait () const |
|
void | wait () const |
|
void | arrive_and_wait (std::ptrdiff_t n=1) |
|
|
static constexpr std::ptrdiff_t | max () |
|
Implements the std::latch
interface for fibers.
- See also
- https://en.cppreference.com/w/cpp/thread/latch
void modm::fiber::latch::count_down |
( |
count_t |
n = 1 | ) |
|
|
inline |
- Note
- This function can be called from an interrupt.
bool modm::fiber::latch::try_wait |
( |
| ) |
const |
|
nodiscardinline |
- Note
- This function can be called from an interrupt.
The documentation for this class was generated from the following file: