30#ifdef USE_THREAD_SYSTEM
32 #include <kcenon/thread/core/thread_pool.h>
33 #include <kcenon/thread/core/typed_thread_pool.h>
34 #include <kcenon/thread/core/job.h>
35 #include <kcenon/thread/interfaces/thread_context.h>
38 #include <kcenon/common/interfaces/logger_interface.h>
39 #include <kcenon/common/interfaces/monitoring_interface.h>
52 template<
typename JobType = kcenon::thread::job_types>
58 using job_type = kcenon::thread::job;
63 template<
typename JobType>
88 using result_type = kcenon::common::Result<T>;
94 using result_void_type = kcenon::common::VoidResult;
107 #include <condition_variable>
110 #include <functional>
131 class fallback_thread_pool;
143 template<
typename JobType>
154 template<
typename JobType>
Fallback thread context (empty implementation) Provides a no-op context when thread_system is not ava...
fallback_context(const fallback_context &)=default
fallback_context(fallback_context &&)=default
~fallback_context()=default
fallback_context & operator=(fallback_context &&)=default
fallback_context()=default
fallback_context & operator=(const fallback_context &)=default
Fallback Result<T> implementation.
result_type(const std::string &error)
result_type(const T &value)
const std::string & error() const
const std::string & error() const
result_void_type(const std::string &error)
void logger_interface_type
Fallback logger interface (no-op)
fallback_thread_pool typed_thread_pool_type
Fallback typed thread pool (delegates to regular pool)
fallback_thread_pool thread_pool_type
Fallback thread pool using std::thread Provides basic functionality when thread_system is not availab...
void monitoring_interface_type
Fallback monitoring interface (no-op)
fallback_context thread_context_type
Fallback thread context (empty)
fallback_job typed_job_type
Fallback typed job.
constexpr bool using_thread_system
Compile-time flag indicating fallback mode.
fallback_job job_type
Fallback job type.