3#include "../detail/pool/backend.hpp"
4#include "../detail/pool/facade.hpp"
16 :
base(count, registration)
lightweight_pool(worker_count count=worker_count::automatic(), worker_registration registration=worker_registration::disabled)
auto post(F &&function, Args &&... args) -> result< void >
auto distribute_workers() -> result< void >
auto configure_workers(thread_config const &config) -> result< void >
auto shutdown_for(std::chrono::milliseconds timeout) -> result< bool >
void post_or_throw(F &&function, Args &&... args)
auto size() const noexcept -> std::size_t
auto is_current_worker() const noexcept -> bool
auto shutdown(shutdown_policy policy=shutdown_policy::drain) -> result< void >
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.