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

Function default_max_background_workers

source/runtime/runtime.cpp:21–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

runtime_optionsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected