microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Public Member Functions | List of all members
microfmt::log::condition_variable_wait_channel Class Reference

Hosted wait channel: a reloco::mutex plus reloco::condition_variable. More...

#include <sync.hpp>

Public Member Functions

void lock () noexcept
 
void unlock () noexcept
 
template<typename Pred >
bool wait_for (std::uint64_t timeout_us, Pred pred) noexcept
 
void wake_all () noexcept
 

Detailed Description

Hosted wait channel: a reloco::mutex plus reloco::condition_variable.

// Outer lock + sleep/wake primitive for a fan-out whose writers may block.
Fixed-capacity sink that forwards each record to up to MaxSinks advanced sinks ("pins"),...
Definition extended_sink.hpp:210

Member Function Documentation

◆ lock()

void microfmt::log::condition_variable_wait_channel::lock ( )
inlinenoexcept

◆ unlock()

void microfmt::log::condition_variable_wait_channel::unlock ( )
inlinenoexcept

◆ wait_for()

template<typename Pred >
bool microfmt::log::condition_variable_wait_channel::wait_for ( std::uint64_t  timeout_us,
Pred  pred 
)
inlinenoexcept

◆ wake_all()

void microfmt::log::condition_variable_wait_channel::wake_all ( )
inlinenoexcept

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