3#include "../detail/pool/backend.hpp"
4#include "../detail/pool/facade.hpp"
16 :
base(count, registration)
work_stealing_pool(worker_count count=worker_count::automatic(), worker_registration registration=worker_registration::disabled)
auto submit_batch_or_throw(Iterator begin, Iterator end) -> std::vector< std::future< void > >
auto submit_or_throw(F &&function, Args &&... args) -> std::future< bind_result_t< F, Args... > >
auto is_current_worker() const noexcept -> bool
auto submit(F &&function, Args &&... args) -> result< std::future< bind_result_t< F, Args... > > >
auto size() const noexcept -> std::size_t
auto get_statistics() const -> pool_statistics
auto pending_tasks() const -> std::size_t
auto wait() -> result< void >
auto submit_batch(Iterator begin, Iterator end) -> result< std::vector< std::future< void > > >
void post_or_throw(F &&function, Args &&... args)
auto parallel_for_each(Iterator begin, Iterator end, Function &&function) -> result< void >
auto shutdown(shutdown_policy policy=shutdown_policy::drain) -> result< void >
auto distribute_workers() -> result< void >
auto post(F &&function, Args &&... args) -> result< void >
auto shutdown_for(std::chrono::milliseconds timeout) -> result< bool >
auto configure_workers(thread_config const &config) -> 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.