Use std::thread::hardware_concurrency, instead of Boost, to determine available cores

This commit is contained in:
fanquake
2017-04-25 09:34:23 +08:00
parent c66adb286a
commit 937bf4335b
2 changed files with 4 additions and 8 deletions

View File

@@ -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();