mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix MSVC workaround in basic_seconds_clock
This commit is contained in:
@@ -1021,7 +1021,7 @@ public:
|
||||
// VFALCO NOTE This is a sign that something is wrong somewhere, it
|
||||
// shouldn't be necessary to sleep until some flag is set.
|
||||
while (mShutdown)
|
||||
boost::this_thread::sleep (boost::posix_time::milliseconds (100));
|
||||
std::this_thread::sleep_for (std::chrono::milliseconds (100));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <boost/thread.hpp>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
class LoadManagerImp
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <thread>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
class ValidationsImp;
|
||||
@@ -406,7 +408,7 @@ private:
|
||||
while (mWriting)
|
||||
{
|
||||
ScopedUnlockType sul (mLock);
|
||||
boost::this_thread::sleep (boost::posix_time::milliseconds (100));
|
||||
std::this_thread::sleep_for (std::chrono::milliseconds (100));
|
||||
}
|
||||
|
||||
WriteLog (lsDEBUG, Validations) << "Validations flushed";
|
||||
|
||||
Reference in New Issue
Block a user