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 77
77
#include < openssl/crypto.h>
78
78
#include < openssl/rand.h>
79
79
#include < openssl/conf.h>
80
+ #include < thread>
80
81
81
82
// Application startup time (used for uptime calculation)
82
83
const int64_t nStartupTime = GetTime();
@@ -891,11 +892,7 @@ bool SetupNetworking()
891
892
892
893
int GetNumCores ()
893
894
{
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 ();
899
896
}
900
897
901
898
std::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);
295
295
std::string HelpMessageOpt (const std::string& option, const std::string& message);
296
296
297
297
/* *
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.
301
300
*/
302
301
int GetNumCores ();
303
302
You can’t perform that action at this time.
0 commit comments