ThreadSchedule 3.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
raw_scheduled_pool.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "../detail/scheduled/backend.hpp"
4#include "../detail/scheduled/facade.hpp"
5
7{
29} // namespace threadschedule::advanced
raw_scheduled_pool(worker_count count=worker_count::automatic(), worker_registration registration=worker_registration::disabled)
auto shutdown(shutdown_policy policy=shutdown_policy::drain) -> result< void >
auto schedule_at(std::chrono::steady_clock::time_point time, F &&function) -> result< scheduled_task >
auto schedule_periodic_after(std::chrono::duration< InitialRep, InitialPeriod > initial_delay, std::chrono::duration< IntervalRep, IntervalPeriod > interval, F &&function) -> result< scheduled_task >
auto schedule_periodic(std::chrono::duration< Rep, Period > interval, F &&function) -> result< scheduled_task >
auto schedule_after(std::chrono::duration< Rep, Period > delay, F &&function) -> result< scheduled_task >
Value type for pool worker count.
static constexpr auto automatic() noexcept -> worker_count
Create automatic worker count.
worker_registration
Controls whether pool workers are registered in a thread registry.
@ disabled
Do not register workers in the global registry.