|
Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
|
Functions | |
| common::error_info | make_error_info (int code, std::string message, std::string module="thread_system") |
| common::error_info | make_error_info (kcenon::thread::error_code code, std::string message) |
| std::exception_ptr | to_exception (const common::error_info &info) |
| common::VoidResult | make_error (const common::error_info &info) |
| common::VoidResult | make_error (kcenon::thread::error_code code, std::string message) |
| common::error_info | unexpected_pool_error () |
| common::VoidResult | wrap_user_task (const std::function< void()> &task) |
| std::optional< common::error_info > | enqueue_job (const std::shared_ptr< kcenon::thread::thread_pool > &pool, const std::shared_ptr< std::promise< void > > &promise, std::function< common::VoidResult()> body) |
| common::Result< std::future< void > > | schedule_task (const std::shared_ptr< kcenon::thread::thread_pool > &pool, std::function< common::VoidResult()> body) |
| void | schedule_task_async (std::shared_ptr< kcenon::thread::thread_pool > pool, std::shared_ptr< std::promise< void > > promise, std::function< common::VoidResult()> body, std::chrono::milliseconds delay) |
|
inline |
Definition at line 126 of file common_executor_adapter.h.
References kcenon::thread::info, kcenon::thread::job_execution_failed, make_error(), make_error_info(), to_exception(), and unexpected_pool_error().
Referenced by schedule_task(), and schedule_task_async().


|
inline |
Definition at line 102 of file common_executor_adapter.h.
References kcenon::thread::info.
Referenced by enqueue_job(), kcenon::thread::adapters::thread_pool_executor_adapter::execute(), kcenon::thread::adapters::thread_pool_executor_adapter::execute_delayed(), schedule_task_async(), and wrap_user_task().

|
inline |
Definition at line 106 of file common_executor_adapter.h.
References make_error_info().

|
inline |
Definition at line 81 of file common_executor_adapter.h.
Referenced by enqueue_job(), make_error(), and unexpected_pool_error().

|
inline |
Definition at line 85 of file common_executor_adapter.h.
|
inline |
Definition at line 193 of file common_executor_adapter.h.
References enqueue_job().
Referenced by kcenon::thread::adapters::thread_pool_executor_adapter::execute(), and kcenon::thread::adapters::thread_pool_executor_adapter::submit().


|
inline |
Definition at line 206 of file common_executor_adapter.h.
References kcenon::thread::delay, enqueue_job(), kcenon::thread::job_execution_failed, make_error(), to_exception(), and unexpected_pool_error().
Referenced by kcenon::thread::adapters::thread_pool_executor_adapter::execute_delayed(), and kcenon::thread::adapters::thread_pool_executor_adapter::submit_delayed().


|
inline |
Definition at line 93 of file common_executor_adapter.h.
References kcenon::thread::info.
Referenced by enqueue_job(), schedule_task_async(), and kcenon::thread::adapters::thread_pool_executor_adapter::submit().

|
inline |
Definition at line 110 of file common_executor_adapter.h.
References make_error_info().
Referenced by enqueue_job(), and schedule_task_async().


|
inline |
Definition at line 114 of file common_executor_adapter.h.
References kcenon::thread::job_execution_failed, and make_error().
Referenced by kcenon::thread::adapters::thread_pool_executor_adapter::submit(), and kcenon::thread::adapters::thread_pool_executor_adapter::submit_delayed().

