diff options
author | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-06-10 01:18:23 -0400 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-06-10 01:18:23 -0400 |
commit | c9548e729c8fecd9d7a9a5dd341da0433194ac73 (patch) | |
tree | 37b05114182d8a7787c0b39aa71b0ec381292e85 /src/mongo/db/concurrency | |
parent | c43636652fc4fb69a47f4eaaa767bc57bb59bb5f (diff) | |
download | mongo-c9548e729c8fecd9d7a9a5dd341da0433194ac73.tar.gz |
SERVER-39338 Remove `stdx/functional.h`
Diffstat (limited to 'src/mongo/db/concurrency')
-rw-r--r-- | src/mongo/db/concurrency/d_concurrency_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/concurrency/d_concurrency_test.cpp b/src/mongo/db/concurrency/d_concurrency_test.cpp index ddf60cc23a1..6172b1302ca 100644 --- a/src/mongo/db/concurrency/d_concurrency_test.cpp +++ b/src/mongo/db/concurrency/d_concurrency_test.cpp @@ -32,6 +32,7 @@ #include "mongo/platform/basic.h" #include <boost/optional/optional_io.hpp> +#include <functional> #include <string> #include <vector> @@ -41,7 +42,6 @@ #include "mongo/db/concurrency/write_conflict_exception.h" #include "mongo/db/service_context_d_test_fixture.h" #include "mongo/db/storage/recovery_unit_noop.h" -#include "mongo/stdx/functional.h" #include "mongo/stdx/future.h" #include "mongo/stdx/memory.h" #include "mongo/stdx/thread.h" @@ -102,8 +102,8 @@ public: } stdx::future<void> runTaskAndKill(OperationContext* opCtx, - stdx::function<void()> fn, - stdx::function<void()> postKill = nullptr) { + std::function<void()> fn, + std::function<void()> postKill = nullptr) { auto task = stdx::packaged_task<void()>(fn); auto result = task.get_future(); stdx::thread taskThread{std::move(task)}; @@ -181,7 +181,7 @@ TEST_F(DConcurrencyTestFixture, ResourceMutex) { auto actual = step.fetchAndAdd(1); ASSERT_EQ(actual, n); } - void waitFor(stdx::function<bool()> cond) { + void waitFor(std::function<bool()> cond) { while (!cond()) sleepmillis(0); } |