MCPcopy Create free account
hub / github.com/comaps/comaps / CpuCores

Method CpuCores

libs/platform/platform.cpp:339–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339unsigned Platform::CpuCores()
340{
341 unsigned const cores = std::thread::hardware_concurrency();
342 return cores > 0 ? cores : 1;
343}
344
345void Platform::ShutdownThreads()
346{

Callers 8

mainFunction · 0.80
BuildIndexMethod · 0.80
parser_tool.cppFile · 0.80
generator_tool.cppFile · 0.80
InitMethod · 0.80
mainFunction · 0.80
UNIT_TESTFunction · 0.80

Calls

no outgoing calls

Tested by 2

InitMethod · 0.64
UNIT_TESTFunction · 0.64