#include <thread_pool.hpp>
◆ ThreadPool() [1/3]
◆ ~ThreadPool()
| threadman::ThreadPool::~ThreadPool |
( |
| ) |
|
|
inlineoverride |
◆ ThreadPool() [2/3]
| threadman::ThreadPool::ThreadPool |
( |
const ThreadPool & |
| ) |
|
|
delete |
◆ ThreadPool() [3/3]
| threadman::ThreadPool::ThreadPool |
( |
ThreadPool && |
| ) |
|
|
delete |
◆ core_worker_count()
| std::size_t threadman::ThreadPool::core_worker_count |
( |
| ) |
const |
|
inlinenoexcept |
◆ detect_stuck_tasks()
| std::vector< StuckTaskEvent > threadman::ThreadPool::detect_stuck_tasks |
( |
std::chrono::steady_clock::time_point |
now | ) |
const |
|
inline |
Driven by ThreadManager housekeeper.
Reports running tasks past stuck_task_threshold.
◆ display_info()
| static const comms::DisplayInfo & threadman::ThreadPool::display_info |
( |
| ) |
|
|
inlinestatic |
◆ execute()
| void threadman::ThreadPool::execute |
( |
std::function< void()> |
task | ) |
|
|
inlineoverridevirtual |
◆ id()
| std::uint64_t threadman::ThreadPool::id |
( |
| ) |
const |
|
inlinenoexcept |
◆ is_shutting_down()
| bool threadman::ThreadPool::is_shutting_down |
( |
| ) |
const |
|
inlinenoexcept |
◆ is_terminated()
| bool threadman::ThreadPool::is_terminated |
( |
| ) |
const |
|
inlinenoexcept |
◆ join()
| void threadman::ThreadPool::join |
( |
| ) |
|
|
inline |
◆ max_worker_count()
| std::size_t threadman::ThreadPool::max_worker_count |
( |
| ) |
const |
|
inlinenoexcept |
◆ name()
| std::string_view threadman::ThreadPool::name |
( |
| ) |
const |
|
inlineoverridevirtualnoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ scale_tick()
| int threadman::ThreadPool::scale_tick |
( |
std::chrono::steady_clock::time_point |
now | ) |
|
|
inline |
◆ shutdown()
| void threadman::ThreadPool::shutdown |
( |
| ) |
|
|
inline |
◆ shutdown_now()
| void threadman::ThreadPool::shutdown_now |
( |
| ) |
|
|
inline |
◆ snapshot_queued_tasks()
| std::vector< TaskSnapshot > threadman::ThreadPool::snapshot_queued_tasks |
( |
| ) |
const |
|
inline |
◆ snapshot_recent_tasks()
| std::vector< TaskSnapshot > threadman::ThreadPool::snapshot_recent_tasks |
( |
| ) |
const |
|
inline |
◆ snapshot_workers()
| std::vector< ThreadSnapshot > threadman::ThreadPool::snapshot_workers |
( |
| ) |
const |
|
inline |
◆ stats()
◆ submit()
template<class Fn >
requires std::invocable<Fn>
| auto threadman::ThreadPool::submit |
( |
Fn && |
f | ) |
-> Future<std::invoke_result_t<Fn>> |
◆ submit_named()
template<class Fn >
requires std::invocable<Fn>
| auto threadman::ThreadPool::submit_named |
( |
std::string |
task_name, |
|
|
Fn && |
f |
|
) |
| -> Future<std::invoke_result_t<Fn>> |
◆ submit_stoppable()
template<class Fn >
requires std::invocable<Fn, std::stop_token>
| auto threadman::ThreadPool::submit_stoppable |
( |
Fn && |
f | ) |
-> Future<std::invoke_result_t<Fn, std::stop_token>> |
◆ worker_count()
| std::size_t threadman::ThreadPool::worker_count |
( |
| ) |
const |
|
inlinenoexcept |
The documentation for this class was generated from the following files: