Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
Loading...
Searching...
No Matches
standalone_executor.h File Reference

Standalone IExecutor implementation using std::jthread. More...

Include dependency graph for standalone_executor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Detailed Description

Standalone IExecutor implementation using std::jthread.

Author
kcenon
Since
1.5.0

This file provides a standalone IExecutor implementation that uses std::jthread (or fallback) for async task execution. It serves as the default executor when thread_system is not available.

This implementation wraps the existing async_worker functionality to provide the IExecutor interface, enabling runtime executor injection without compile-time dependencies on thread_system.

Key features:

  • Implements common::interfaces::IExecutor
  • Uses std::jthread with cooperative cancellation
  • Thread-safe task submission
  • Graceful shutdown support
Note
Part of Issue #253: Migrate to IExecutor interface
See also
kcenon::common::interfaces::IExecutor
kcenon::logger::async::async_worker

Definition in file standalone_executor.h.