mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Guarantee C locale
* Remove all calls to setlocale to ensure that the global
locale is always C.
* Also replace beast::SystemStats::getNumCpus() with
std:🧵:hardware_concurrency()
This commit is contained in:
committed by
Tom Ritchford
parent
29225bbe75
commit
2264ae9247
@@ -30,6 +30,7 @@
|
||||
#include <chrono>
|
||||
#include <mutex>
|
||||
#include <set>
|
||||
#include <thread>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
@@ -225,7 +226,7 @@ public:
|
||||
}
|
||||
else if (c == 0)
|
||||
{
|
||||
c = beast::SystemStats::getNumCpus ();
|
||||
c = std::thread::hardware_concurrency();
|
||||
|
||||
// VFALCO NOTE According to boost, hardware_concurrency cannot return
|
||||
// negative numbers/
|
||||
|
||||
Reference in New Issue
Block a user