summaryrefslogtreecommitdiff
path: root/src/mongo/executor/thread_pool_mock.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/executor/thread_pool_mock.h')
-rw-r--r--src/mongo/executor/thread_pool_mock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/executor/thread_pool_mock.h b/src/mongo/executor/thread_pool_mock.h
index e3baaa07273..e1f8e30a80f 100644
--- a/src/mongo/executor/thread_pool_mock.h
+++ b/src/mongo/executor/thread_pool_mock.h
@@ -30,10 +30,10 @@
#pragma once
#include <cstdint>
+#include <functional>
#include <vector>
#include "mongo/platform/random.h"
-#include "mongo/stdx/functional.h"
#include "mongo/stdx/mutex.h"
#include "mongo/stdx/thread.h"
#include "mongo/util/concurrency/thread_pool_interface.h"
@@ -56,7 +56,7 @@ public:
*/
struct Options {
// This function is run before the worker thread begins consuming tasks.
- using OnCreateThreadFn = stdx::function<void()>;
+ using OnCreateThreadFn = std::function<void()>;
OnCreateThreadFn onCreateThread = []() {};
};