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 7777#include < openssl/crypto.h>
7878#include < openssl/rand.h>
7979#include < openssl/conf.h>
80+ #include < thread>
8081
8182// Application startup time (used for uptime calculation)
8283const int64_t nStartupTime = GetTime();
@@ -891,11 +892,7 @@ bool SetupNetworking()
891892
892893int GetNumCores ()
893894{
894- #if BOOST_VERSION >= 105600
895- return boost::thread::physical_concurrency ();
896- #else // Must fall back to hardware_concurrency, which unfortunately counts virtual cores
897- return boost::thread::hardware_concurrency ();
898- #endif
895+ return std::thread::hardware_concurrency ();
899896}
900897
901898std::string CopyrightHolders (const std::string& strPrefix)
Original file line number Diff line number Diff line change @@ -295,9 +295,8 @@ std::string HelpMessageGroup(const std::string& message);
295295std::string HelpMessageOpt (const std::string& option, const std::string& message);
296296
297297/* *
298- * Return the number of physical cores available on the current system.
299- * @note This does not count virtual cores, such as those provided by HyperThreading
300- * when boost is newer than 1.56.
298+ * Return the number of cores available on the current system.
299+ * @note This does count virtual cores, such as those provided by HyperThreading.
301300 */
302301int GetNumCores ();
303302
You can’t perform that action at this time.
0 commit comments