|
Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
|
Condition variable wait helper with stop support. More...
#include <jthread_compat.h>

Static Public Member Functions | |
| template<typename Lock , typename Predicate > | |
| static bool | wait (std::condition_variable &cv, Lock &lock, simple_stop_source &stop, Predicate pred) |
| Wait on condition variable with stop support. | |
Condition variable wait helper with stop support.
Provides a unified interface for waiting on condition variables with stop token support, regardless of jthread availability.
Definition at line 220 of file jthread_compat.h.
|
inlinestatic |
Wait on condition variable with stop support.
| Lock | Lock type |
| Predicate | Predicate type |
| cv | Condition variable |
| lock | Lock to use |
| stop | Stop source to check |
| pred | Predicate to check |
Definition at line 242 of file jthread_compat.h.
References kcenon::logger::async::simple_stop_source::stop_requested().
