summaryrefslogtreecommitdiff
path: root/src/mongo/util/clock_source_mock.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/clock_source_mock.h')
-rw-r--r--src/mongo/util/clock_source_mock.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/util/clock_source_mock.h b/src/mongo/util/clock_source_mock.h
index a257775bb7c..ac220f912cd 100644
--- a/src/mongo/util/clock_source_mock.h
+++ b/src/mongo/util/clock_source_mock.h
@@ -54,7 +54,7 @@ public:
Milliseconds getPrecision() override;
Date_t now() override;
- Status setAlarm(Date_t when, stdx::function<void()> action) override;
+ Status setAlarm(Date_t when, unique_function<void()> action) override;
/**
* Advances the current time by the given value.
@@ -67,7 +67,7 @@ public:
void reset(Date_t newNow);
private:
- using Alarm = std::pair<Date_t, stdx::function<void()>>;
+ using Alarm = std::pair<Date_t, unique_function<void()>>;
void _processAlarms(stdx::unique_lock<stdx::mutex> lk);
stdx::mutex _mutex;
@@ -106,7 +106,7 @@ public:
return _source->now();
}
- Status setAlarm(Date_t when, stdx::function<void()> action) override {
+ Status setAlarm(Date_t when, unique_function<void()> action) override {
return _source->setAlarm(when, std::move(action));
}