|
Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
|
Simple stop source for environments without std::stop_token. More...
#include <jthread_compat.h>

Public Member Functions | |
| simple_stop_source () | |
| void | request_stop () |
| Request stop. | |
| bool | stop_requested () const noexcept |
| Check if stop was requested. | |
| void | reset () |
| Reset stop state (for reuse) | |
Private Attributes | |
| std::atomic< bool > | stopped_ |
Simple stop source for environments without std::stop_token.
Provides a minimal implementation of stop signaling mechanism using atomic flags and condition variables.
Definition at line 48 of file jthread_compat.h.
|
inline |
Definition at line 50 of file jthread_compat.h.
|
inline |
|
inline |
|
inlinenodiscardnoexcept |
Check if stop was requested.
Definition at line 62 of file jthread_compat.h.
References stopped_.
Referenced by kcenon::logger::async::compat_cv_wait::wait().

|
private |
Definition at line 74 of file jthread_compat.h.
Referenced by request_stop(), reset(), and stop_requested().