summaryrefslogtreecommitdiff
path: root/src/mongo/transport/service_executor_reserved.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/transport/service_executor_reserved.h')
-rw-r--r--src/mongo/transport/service_executor_reserved.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/transport/service_executor_reserved.h b/src/mongo/transport/service_executor_reserved.h
index b6b0f17f803..a6ec63b82e1 100644
--- a/src/mongo/transport/service_executor_reserved.h
+++ b/src/mongo/transport/service_executor_reserved.h
@@ -32,6 +32,7 @@
#include <deque>
#include "mongo/base/status.h"
+#include "mongo/db/service_context.h"
#include "mongo/platform/atomic_word.h"
#include "mongo/platform/mutex.h"
#include "mongo/stdx/condition_variable.h"
@@ -54,6 +55,8 @@ class ServiceExecutorReserved final : public ServiceExecutor {
public:
explicit ServiceExecutorReserved(ServiceContext* ctx, std::string name, size_t reservedThreads);
+ static ServiceExecutorReserved* get(ServiceContext* ctx);
+
Status start() override;
Status shutdown(Milliseconds timeout) override;
Status schedule(Task task, ScheduleFlags flags) override;