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>
|
| 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 |
| |
Wait channel that never sleeps: wait_for just evaluates the predicate once. Use for single-threaded or "discard when full" setups.
◆ 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: