MCPcopy Create free account
hub / github.com/David-Haim/concurrencpp / default_max_cpu_workers

Function default_max_cpu_workers

source/runtime/runtime.cpp:17–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace concurrencpp::details {
16 namespace {
17 size_t default_max_cpu_workers() noexcept {
18 return static_cast<size_t>(thread::hardware_concurrency() * consts::k_cpu_threadpool_worker_count_factor);
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);

Callers 1

runtime_optionsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected