Fix MSVC workaround in basic_seconds_clock

This commit is contained in:
Vinnie Falco
2014-06-16 10:05:11 -07:00
parent 3d58f0d941
commit a57e4263d7
6 changed files with 43 additions and 58 deletions

View File

@@ -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));
}
}

View File

@@ -17,6 +17,8 @@
*/
//==============================================================================
#include <boost/thread.hpp>
namespace ripple {
class LoadManagerImp

View File

@@ -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";