5#include <vitrio/concurrency/completion_notifier.hpp>
6#include <vitrio/concurrency/executor.hpp>
7#include <vitrio/concurrency/task.hpp>
8#include <vitrio/export.hpp>
9#include <vitrio/platform.hpp>
73 std::unique_ptr<
task> t,
79 VITRIO_STD_MEMBER_INTERFACE
80 std::unique_ptr<implementation> m_implementation;
Where a finished unit of work is reported.
Definition completion_notifier.hpp:20
Where a task is handed off to run, now or later.
Definition executor.hpp:26
One unit of work an executor can run.
Definition task.hpp:18
An executor backed by a fixed pool of worker threads.
Definition thread_pool_executor.hpp:38
std::size_t get_worker_count() const noexcept
Get the number of worker threads.
thread_pool_executor(std::size_t worker_count)
Construct a pool with a given number of worker threads.