|
Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
|
Standalone async worker implementation with jthread compatibility kcenon. More...
#include "jthread_compat.h"#include <atomic>#include <chrono>#include <condition_variable>#include <functional>#include <memory>#include <mutex>#include <queue>#include <thread>

Go to the source code of this file.
Classes | |
| class | kcenon::logger::async::async_worker |
| Standalone async worker with jthread compatibility. More... | |
Namespaces | |
| namespace | kcenon |
| namespace | kcenon::logger |
| namespace | kcenon::logger::async |
Typedefs | |
| using | kcenon::logger::async::task_type = std::function<void()> |
| Task type for async worker. | |
Standalone async worker implementation with jthread compatibility kcenon.
This file provides a standalone async worker that uses std::jthread for cooperative cancellation support where available, with a fallback to std::thread + manual stop mechanism for environments without jthread support (e.g., libc++ on macOS/Clang).
Key features:
Definition in file async_worker.h.