Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
Loading...
Searching...
No Matches
config.h File Reference

Central configuration for thread_pool module. More...

#include <cstddef>
#include <chrono>
Include dependency graph for config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  kcenon
 
namespace  kcenon::thread
 Core threading foundation of the thread system library.
 
namespace  kcenon::thread::config
 

Variables

constexpr size_t kcenon::thread::config::default_thread_count = 4
 
constexpr size_t kcenon::thread::config::max_threads = 64
 
constexpr size_t kcenon::thread::config::min_threads = 1
 
constexpr size_t kcenon::thread::config::default_queue_size = 1024
 
constexpr size_t kcenon::thread::config::unlimited_queue_size = 0
 
constexpr auto kcenon::thread::config::default_wake_interval = std::chrono::milliseconds(100)
 
constexpr auto kcenon::thread::config::default_shutdown_timeout = std::chrono::seconds(5)
 
constexpr auto kcenon::thread::config::default_worker_idle_timeout = std::chrono::seconds(30)
 
constexpr bool kcenon::thread::config::default_yield_on_idle = true
 
constexpr bool kcenon::thread::config::default_work_stealing = false
 Enable work stealing for improved load balancing.
 
constexpr size_t kcenon::thread::config::default_max_steal_attempts = 3
 Default maximum steal attempts before backing off.
 
constexpr auto kcenon::thread::config::default_steal_backoff = std::chrono::microseconds(50)
 Default backoff duration between steal attempts (microseconds).
 
constexpr bool kcenon::thread::config::default_pin_threads = false
 
constexpr bool kcenon::thread::config::default_use_priorities = false
 
constexpr size_t kcenon::thread::config::max_queue_size = 1024 * 1024
 
constexpr size_t kcenon::thread::config::default_stack_size = 1024 * 1024
 
constexpr bool kcenon::thread::config::enable_coroutines = __cplusplus >= 202002L
 
constexpr bool kcenon::thread::config::enable_statistics = true
 
constexpr bool kcenon::thread::config::enable_debugging = false
 
constexpr const char * kcenon::thread::config::default_thread_prefix = "worker"
 
constexpr const char * kcenon::thread::config::default_pool_name = "thread_pool"
 

Detailed Description

Central configuration for thread_pool module.

This file contains compile-time configuration constants and default values that can be used throughout the thread_pool module.

Definition in file config.h.