File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 1919#include " utiltime.h"
2020
2121#include < stdarg.h>
22+ #include < thread>
2223
2324#include < boost/date_time/posix_time/posix_time.hpp>
2425
@@ -657,9 +658,5 @@ void SetThreadPriority(int nPriority)
657658
658659int GetNumCores ()
659660{
660- #if BOOST_VERSION >= 105600
661- return boost::thread::physical_concurrency ();
662- #else // Must fall back to hardware_concurrency, which unfortunately counts virtual cores
663- return boost::thread::hardware_concurrency ();
664- #endif
661+ return std::thread::hardware_concurrency ();
665662}
Original file line number Diff line number Diff line change @@ -162,9 +162,8 @@ std::string HelpMessageGroup(const std::string& message);
162162std::string HelpMessageOpt (const std::string& option, const std::string& message);
163163
164164/* *
165- * Return the number of physical cores available on the current system.
166- * @note This does not count virtual cores, such as those provided by HyperThreading
167- * when boost is newer than 1.56.
165+ * Return the number of cores available on the current system.
166+ * @note This does count virtual cores, such as those provided by HyperThreading.
168167 */
169168int GetNumCores ();
170169
You can’t perform that action at this time.
0 commit comments