diff --git a/src/util/system.h b/src/util/system.h --- a/src/util/system.h +++ b/src/util/system.h @@ -356,9 +356,9 @@ 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(); diff --git a/src/util/system.cpp b/src/util/system.cpp --- a/src/util/system.cpp +++ b/src/util/system.cpp @@ -21,6 +21,7 @@ #include #include +#include #if (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)) #include @@ -1350,7 +1351,7 @@ } int GetNumCores() { - return boost::thread::physical_concurrency(); + return std::thread::hardware_concurrency(); } std::string CopyrightHolders(const std::string &strPrefix) {