diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2015-05-18 16:11:40 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2015-05-19 17:00:05 -0400 |
commit | 9ab64834372d7d4c651bd41496f98afb7f44fbf7 (patch) | |
tree | 9240ed23acdfb0d6b98e370a00d647ba1f6e5ae1 /src/mongo/dbtests/threadedtests.cpp | |
parent | 2bd10ab22e77234c04b0ac42fe5cbc7539423985 (diff) | |
download | mongo-9ab64834372d7d4c651bd41496f98afb7f44fbf7.tar.gz |
SERVER-17310 Provide stdx polyfill for std::this_thread. Stop using boost::this_thread.
Diffstat (limited to 'src/mongo/dbtests/threadedtests.cpp')
-rw-r--r-- | src/mongo/dbtests/threadedtests.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/dbtests/threadedtests.cpp b/src/mongo/dbtests/threadedtests.cpp index b663ccc160c..4470387aeac 100644 --- a/src/mongo/dbtests/threadedtests.cpp +++ b/src/mongo/dbtests/threadedtests.cpp @@ -45,6 +45,7 @@ #include "mongo/platform/atomic_word.h" #include "mongo/platform/bits.h" #include "mongo/stdx/functional.h" +#include "mongo/stdx/thread.h" #include "mongo/util/concurrency/mvar.h" #include "mongo/util/concurrency/rwlock.h" #include "mongo/util/concurrency/thread_pool.h" @@ -302,7 +303,7 @@ namespace ThreadedTests { int val = target.take(); #if BOOST_VERSION >= 103500 //increase chances of catching failure - boost::this_thread::yield(); + stdx::this_thread::yield(); #endif target.put(val+1); } @@ -574,7 +575,7 @@ namespace ThreadedTests { void sleepalittle() { Timer t; while( 1 ) { - boost::this_thread::yield(); + stdx::this_thread::yield(); if( t.micros() > 8 ) break; } |