#include <thread_pool_interface.h>
|
| virtual | ~thread_pool_interface ()=default |
| | Virtual destructor for proper polymorphic destruction.
|
| |
| virtual auto | start () -> bool=0 |
| | Start the thread pool.
|
| |
| virtual auto | is_running () const noexcept -> bool=0 |
| | Check if the thread pool is running.
|
| |
| virtual void | shutdown (bool wait_for_completion=true)=0 |
| | Shutdown the thread pool.
|
| |
| virtual auto | submit (std::function< void()> task) -> std::future< void >=0 |
| | Submit a task for execution.
|
| |
| virtual auto | submit_with_priority (job_priority priority, std::function< void()> task) -> std::future< void >=0 |
| | Submit a task with a specific priority level.
|
| |
| virtual void | submit_fire_and_forget (std::function< void()> task)=0 |
| | Submit a task without waiting for completion.
|
| |
| virtual auto | get_thread_count () const -> std::size_t=0 |
| | Get the current number of worker threads.
|
| |
| virtual auto | get_pending_task_count () const -> std::size_t=0 |
| | Get the number of pending tasks in the queue.
|
| |
| virtual auto | get_idle_worker_count () const -> std::size_t=0 |
| | Get the number of idle workers.
|
| |
Definition at line 112 of file thread_pool_interface.h.
◆ ~thread_pool_interface()
| virtual kcenon::pacs::integration::thread_pool_interface::~thread_pool_interface |
( |
| ) |
|
|
virtualdefault |
◆ thread_pool_interface() [1/3]
| kcenon::pacs::integration::thread_pool_interface::thread_pool_interface |
( |
| ) |
|
|
protecteddefault |
◆ thread_pool_interface() [2/3]
| kcenon::pacs::integration::thread_pool_interface::thread_pool_interface |
( |
const thread_pool_interface & | | ) |
|
|
protecteddelete |
◆ thread_pool_interface() [3/3]
◆ get_idle_worker_count()
| virtual auto kcenon::pacs::integration::thread_pool_interface::get_idle_worker_count |
( |
| ) |
const -> std::size_t |
|
nodiscardpure virtual |
◆ get_pending_task_count()
| virtual auto kcenon::pacs::integration::thread_pool_interface::get_pending_task_count |
( |
| ) |
const -> std::size_t |
|
nodiscardpure virtual |
◆ get_thread_count()
| virtual auto kcenon::pacs::integration::thread_pool_interface::get_thread_count |
( |
| ) |
const -> std::size_t |
|
nodiscardpure virtual |
◆ is_running()
| virtual auto kcenon::pacs::integration::thread_pool_interface::is_running |
( |
| ) |
const -> bool |
|
nodiscardpure virtualnoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ shutdown()
| virtual void kcenon::pacs::integration::thread_pool_interface::shutdown |
( |
bool | wait_for_completion = true | ) |
|
|
pure virtual |
◆ start()
| virtual auto kcenon::pacs::integration::thread_pool_interface::start |
( |
| ) |
-> bool |
|
nodiscardpure virtual |
◆ submit()
| virtual auto kcenon::pacs::integration::thread_pool_interface::submit |
( |
std::function< void()> | task | ) |
-> std::future< void > |
|
nodiscardpure virtual |
◆ submit_fire_and_forget()
| virtual void kcenon::pacs::integration::thread_pool_interface::submit_fire_and_forget |
( |
std::function< void()> | task | ) |
|
|
pure virtual |
◆ submit_with_priority()
| virtual auto kcenon::pacs::integration::thread_pool_interface::submit_with_priority |
( |
job_priority | priority, |
|
|
std::function< void()> | task ) -> std::future< void > |
|
nodiscardpure virtual |
The documentation for this class was generated from the following file: