WorkPoolConfig struct
#include <gtopt/work_pool.hpp>
Constructors, destructors, conversion operators
-
WorkPoolConfig(int max_threads_ = static_
cast<int>(std::thread::hardware_concurrency()), double max_cpu_threshold_ = 95.0, std::chrono::milliseconds scheduler_interval_ = std::chrono::milliseconds(20), std::string name_ = "WorkPool") explicit noexcept
Public variables
- double max_cpu_threshold
- int max_threads
- std::string name
- std::chrono::milliseconds scheduler_interval