|
microfmt
Zero-allocation C++ formatting for constrained environments
|
Type-erased "space was freed" callback handed to the consumer side of a sink (two words, no allocation). More...
#include <sync.hpp>
Public Types | |
| using | callback = void(*)(void *) noexcept |
Public Member Functions | |
| constexpr | space_notifier () noexcept=default |
| constexpr | space_notifier (void *ctx RELOCO_LIFETIMEBOUND, callback cb) noexcept |
| void | notify () const noexcept |
| constexpr | operator bool () const noexcept |
Type-erased "space was freed" callback handed to the consumer side of a sink (two words, no allocation).
The consumer calls notify after draining data so blocked writers wake.
| using microfmt::log::space_notifier::callback = void (*)(void *) noexcept |
|
constexprdefaultnoexcept |
|
inlineconstexprnoexcept |
|
inlinenoexcept |
|
inlineexplicitconstexprnoexcept |