mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Use std::thread::hardware_concurrency, instead of Boost, to determine available cores
This commit is contained in:
@@ -295,9 +295,8 @@ std::string HelpMessageGroup(const std::string& message);
|
||||
std::string HelpMessageOpt(const std::string& option, const std::string& message);
|
||||
|
||||
/**
|
||||
* Return the number of physical cores available on the current system.
|
||||
* @note This does not count virtual cores, such as those provided by HyperThreading
|
||||
* when boost is newer than 1.56.
|
||||
* Return the number of cores available on the current system.
|
||||
* @note This does count virtual cores, such as those provided by HyperThreading.
|
||||
*/
|
||||
int GetNumCores();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user