| 19 | } |
| 20 | |
| 21 | size_t default_max_background_workers() noexcept { |
| 22 | return static_cast<size_t>(thread::hardware_concurrency() * consts::k_background_threadpool_worker_count_factor); |
| 23 | } |
| 24 | |
| 25 | constexpr auto k_default_max_worker_wait_time = std::chrono::seconds(consts::k_max_threadpool_worker_waiting_time_sec); |
| 26 | } // namespace |