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

Stable public include for thread_pool and numa_thread_pool. More...

Include dependency graph for thread_pool.h:

Go to the source code of this file.

Detailed Description

Stable public include for thread_pool and numa_thread_pool.

This umbrella header provides a stable include path for the thread_pool class and its NUMA-aware variant. Downstream code should include this header rather than the internal core/ path.

// Standard thread pool
auto pool = std::make_shared<kcenon::thread::thread_pool>("my_pool");
// NUMA-aware thread pool (for multi-socket servers)
auto numa_pool = std::make_shared<kcenon::thread::numa_thread_pool>("numa_pool");
numa_pool->enable_numa_work_stealing();
Stable public include for thread_pool and numa_thread_pool.

Definition in file thread_pool.h.