diff options
author | Ben Caimano <ben.caimano@10gen.com> | 2020-07-15 22:15:46 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-07-16 20:47:06 +0000 |
commit | 64449198588abc90ea81eb4f4810bf4ae23d59b4 (patch) | |
tree | 98e21386a9868d8d4c9ba86ed9793cd591225cd2 /src/mongo/transport/service_executor.h | |
parent | 80f11e6ae0708e8c8da49208ef2cf71cdd06877c (diff) | |
download | mongo-64449198588abc90ea81eb4f4810bf4ae23d59b4.tar.gz |
SERVER-49548 Convert ServiceExecutor to use unique_function
Diffstat (limited to 'src/mongo/transport/service_executor.h')
-rw-r--r-- | src/mongo/transport/service_executor.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/transport/service_executor.h b/src/mongo/transport/service_executor.h index 6a1410ae86b..d44bb704c66 100644 --- a/src/mongo/transport/service_executor.h +++ b/src/mongo/transport/service_executor.h @@ -36,6 +36,7 @@ #include "mongo/platform/bitwise_enum_operators.h" #include "mongo/transport/transport_mode.h" #include "mongo/util/duration.h" +#include "mongo/util/functional.h" namespace mongo { // This needs to be forward declared here because the service_context.h is a circular dependency. @@ -49,7 +50,7 @@ namespace transport { class ServiceExecutor { public: virtual ~ServiceExecutor() = default; - using Task = std::function<void()>; + using Task = unique_function<void()>; enum ScheduleFlags { // No flags (kEmptyFlags) specifies that this is a normal task and that the executor should // launch new threads as needed to run the task. |