146 default:
return "unknown";
159 default:
return "unknown";
171 default:
return "unknown";
Central configuration for thread_pool module.
Forward declarations for thread system types.
@ adaptive
Automatically adjust based on load conditions.
constexpr auto default_worker_idle_timeout
constexpr bool default_work_stealing
Enable work stealing for improved load balancing.
constexpr bool default_pin_threads
constexpr bool enable_statistics
constexpr const char * default_thread_prefix
constexpr bool default_yield_on_idle
Core threading foundation of the thread system library.
worker_state
Enumeration of worker states.
@ starting
Worker is starting up.
@ stopping
Worker is shutting down.
@ active
Worker is actively processing jobs.
@ created
Worker created but not started.
@ idle
Worker is idle, waiting for work.
@ stopped
Worker has stopped.
steal_policy
Policy for selecting steal victims.
@ round_robin
Sequential victim selection (deterministic, fair)
@ random
Random victim selection (default, good load distribution)
@ adaptive
Select based on queue sizes (best for uneven loads)
scheduling_policy
Enumeration of scheduling policies.
@ work_stealing
Work-stealing scheduling.
@ lifo
Last-in, first-out scheduling.
@ priority
Priority-based scheduling.
@ fifo
First-in, first-out scheduling.
constexpr std::string_view to_string(log_level_v2 level) noexcept
Convert log_level_v2 to string representation.
Worker behavior policy configuration.
std::chrono::microseconds steal_backoff
static worker_policy power_efficient()
Create a power-efficient worker policy.
static worker_policy high_performance()
Create a high-performance worker policy.
bool continue_on_exception
std::chrono::microseconds idle_sleep_duration
size_t max_consecutive_failures
std::string worker_name_prefix
size_t max_jobs_per_batch
static worker_policy default_policy()
Create a default worker policy.
std::chrono::milliseconds idle_timeout
scheduling_policy scheduling
size_t max_steal_attempts
steal_policy victim_selection
static worker_policy low_latency()
Create a low-latency worker policy.
bool enable_work_stealing