MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / GetNumCores

Function GetNumCores

src/util.cpp:803–810  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

801}
802
803int GetNumCores()
804{
805#if BOOST_VERSION >= 105600
806 return boost::thread::physical_concurrency();
807#else // Must fall back to hardware_concurrency, which unfortunately counts virtual cores
808 return boost::thread::hardware_concurrency();
809#endif
810}
811

Callers 4

GenerateBitcoinsFunction · 0.85
ScriptCheckThreadsMethod · 0.85
HelpMessageFunction · 0.85
OptionsDialogMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected