ThreadSchedule 3.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
threadschedule::scheduled_pool_config Class Reference

Builder-style configuration for scheduled_pool. More...

#include <scheduled_pool.hpp>

Public Member Functions

auto set_worker_count (worker_count value) noexcept -> scheduled_pool_config &
 Set number of worker threads executing scheduled callbacks.
 
auto set_registration (worker_registration value) noexcept -> scheduled_pool_config &
 Configure registry registration behavior for scheduler workers.
 
auto set_worker_config (thread_config value) -> scheduled_pool_config &
 Set configuration applied to worker threads.
 
auto set_scheduler_config (thread_config value) -> scheduled_pool_config &
 Set configuration applied to the scheduler coordination thread.
 
auto set_shutdown_policy (shutdown_policy value) noexcept -> scheduled_pool_config &
 Set shutdown behavior for pending scheduled tasks.
 
auto set_error_callback (error_callback value) -> scheduled_pool_config &
 Set callback invoked when scheduled callbacks throw.
 
auto get_worker_count () const noexcept -> worker_count
 Return configured worker count.
 
auto get_registration () const noexcept -> worker_registration
 Return configured worker registration mode.
 
auto get_worker_config () const noexcept -> thread_config const &
 Return worker-thread configuration.
 
auto get_scheduler_config () const noexcept -> thread_config const &
 Return scheduler-thread configuration.
 
auto get_shutdown_policy () const noexcept -> shutdown_policy
 Return configured shutdown policy.
 
auto get_error_callback () const noexcept -> error_callback const &
 Return configured asynchronous error callback.
 

Detailed Description

Builder-style configuration for scheduled_pool.

Definition at line 34 of file scheduled_pool.hpp.

Member Function Documentation

◆ get_error_callback()

auto threadschedule::scheduled_pool_config::get_error_callback ( ) const -> error_callback const&
inlinenoexcept

Return configured asynchronous error callback.

Definition at line 112 of file scheduled_pool.hpp.

◆ get_registration()

auto threadschedule::scheduled_pool_config::get_registration ( ) const -> worker_registration
inlinenoexcept

Return configured worker registration mode.

Definition at line 88 of file scheduled_pool.hpp.

◆ get_scheduler_config()

auto threadschedule::scheduled_pool_config::get_scheduler_config ( ) const -> thread_config const&
inlinenoexcept

Return scheduler-thread configuration.

Definition at line 100 of file scheduled_pool.hpp.

Referenced by threadschedule::scheduled_pool::scheduled_pool().

◆ get_shutdown_policy()

auto threadschedule::scheduled_pool_config::get_shutdown_policy ( ) const -> shutdown_policy
inlinenoexcept

Return configured shutdown policy.

Definition at line 106 of file scheduled_pool.hpp.

Referenced by threadschedule::scheduled_pool::shutdown().

◆ get_worker_config()

auto threadschedule::scheduled_pool_config::get_worker_config ( ) const -> thread_config const&
inlinenoexcept

Return worker-thread configuration.

Definition at line 94 of file scheduled_pool.hpp.

Referenced by threadschedule::scheduled_pool::scheduled_pool().

◆ get_worker_count()

auto threadschedule::scheduled_pool_config::get_worker_count ( ) const -> worker_count
inlinenoexcept

Return configured worker count.

Definition at line 82 of file scheduled_pool.hpp.

◆ set_error_callback()

auto threadschedule::scheduled_pool_config::set_error_callback ( error_callback  value) -> scheduled_pool_config&
inline

Set callback invoked when scheduled callbacks throw.

Definition at line 74 of file scheduled_pool.hpp.

◆ set_registration()

auto threadschedule::scheduled_pool_config::set_registration ( worker_registration  value) -> scheduled_pool_config&
inlinenoexcept

Configure registry registration behavior for scheduler workers.

Definition at line 46 of file scheduled_pool.hpp.

◆ set_scheduler_config()

auto threadschedule::scheduled_pool_config::set_scheduler_config ( thread_config  value) -> scheduled_pool_config&
inline

Set configuration applied to the scheduler coordination thread.

Definition at line 60 of file scheduled_pool.hpp.

◆ set_shutdown_policy()

auto threadschedule::scheduled_pool_config::set_shutdown_policy ( shutdown_policy  value) -> scheduled_pool_config&
inlinenoexcept

Set shutdown behavior for pending scheduled tasks.

Definition at line 67 of file scheduled_pool.hpp.

◆ set_worker_config()

auto threadschedule::scheduled_pool_config::set_worker_config ( thread_config  value) -> scheduled_pool_config&
inline

Set configuration applied to worker threads.

Definition at line 53 of file scheduled_pool.hpp.

◆ set_worker_count()

auto threadschedule::scheduled_pool_config::set_worker_count ( worker_count  value) -> scheduled_pool_config&
inlinenoexcept

Set number of worker threads executing scheduled callbacks.

Definition at line 39 of file scheduled_pool.hpp.


The documentation for this class was generated from the following file: