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:
Howard Hinnant
2014-10-13 19:20:53 -04:00
committed by Tom Ritchford
parent 29225bbe75
commit 2264ae9247
9 changed files with 6 additions and 117 deletions

View File

@@ -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/