modm API documentation
modm::fiber::latch Class Reference

#include <modm/processing/fiber/latch.hpp>

Public Member Functions

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 Public Member Functions

static constexpr std::ptrdiff_t max ()
 

Detailed Description

Implements the std::latch interface for fibers.

See also
https://en.cppreference.com/w/cpp/thread/latch

Member Function Documentation

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: