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
One unit of work an executor can run.
Definition task.hpp:18
void submit(std::unique_ptr< task > t, std::shared_ptr< completion_notifier > notifier) override
Queue a unit of work for a worker to run.
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.