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

Wait channel that never sleeps: wait_for just evaluates the predicate once. Use for single-threaded or "discard when full" setups. More...

#include <sync.hpp>

Public Member Functions

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

Detailed Description

Wait channel that never sleeps: wait_for just evaluates the predicate once. Use for single-threaded or "discard when full" setups.

Member Function Documentation

◆ lock()

constexpr void microfmt::log::null_wait_channel::lock ( )
inlineconstexprnoexcept

◆ unlock()

constexpr void microfmt::log::null_wait_channel::unlock ( )
inlineconstexprnoexcept

◆ wait_for()

template<typename Pred >
constexpr bool microfmt::log::null_wait_channel::wait_for ( std::uint64_t  ,
Pred  pred 
)
inlineconstexprnoexcept

◆ wake_all()

constexpr void microfmt::log::null_wait_channel::wake_all ( )
inlineconstexprnoexcept

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