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

Method hardware_concurrency

source/threads/thread.cpp:42–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42size_t thread::hardware_concurrency() noexcept {
43 const auto hc = std::thread::hardware_concurrency();
44 return (hc != 0) ? hc : consts::k_default_number_of_cores;
45}
46
47#ifdef CRCPP_WIN_OS
48

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected