|
Container System 0.1.0
High-performance C++20 type-safe container framework with SIMD-accelerated serialization
|
Global executor for async operations. More...
#include <thread_pool_executor.h>

Public Member Functions | |
| void | set_executor (executor_ptr executor) |
| Set the global executor. | |
| executor_ptr | get_executor () const |
| Get the global executor. | |
| bool | has_executor () const |
| Check if an executor is configured. | |
| void | clear_executor () |
| Clear the global executor. | |
Static Public Member Functions | |
| static async_executor_context & | instance () |
| Get the singleton instance. | |
Private Member Functions | |
| async_executor_context ()=default | |
Private Attributes | |
| executor_ptr | executor_ {} |
Global executor for async operations.
When set, async operations will use this executor instead of creating individual threads. This improves performance by reusing threads from a pool.
Definition at line 212 of file thread_pool_executor.h.
|
privatedefault |
|
inline |
Clear the global executor.
Definition at line 257 of file thread_pool_executor.h.
References executor_.
|
inlinenodiscard |
Get the global executor.
Definition at line 237 of file thread_pool_executor.h.
References executor_.
|
inlinenodiscard |
Check if an executor is configured.
Definition at line 245 of file thread_pool_executor.h.
References executor_.
|
inlinestatic |
Get the singleton instance.
Definition at line 218 of file thread_pool_executor.h.
References instance().
Referenced by kcenon::container::async::executor_context_guard::executor_context_guard(), instance(), and kcenon::container::async::executor_context_guard::~executor_context_guard().


|
inline |
Set the global executor.
| executor | The executor to use for async operations |
Definition at line 228 of file thread_pool_executor.h.
References executor_.
Referenced by kcenon::container::async::executor_context_guard::executor_context_guard(), and kcenon::container::async::executor_context_guard::~executor_context_guard().

|
private |
Definition at line 266 of file thread_pool_executor.h.
Referenced by clear_executor(), get_executor(), has_executor(), and set_executor().