summaryrefslogtreecommitdiff
path: root/src/mongo/executor/task_executor_test_fixture.h
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2017-06-09 14:06:26 -0400
committerAndy Schwerin <schwerin@mongodb.com>2017-06-09 14:06:26 -0400
commitf9c36696a25d3837f512421755952736236bbed0 (patch)
tree9becbcdb1ade14d930d3b2da3c731ebfe20f8a75 /src/mongo/executor/task_executor_test_fixture.h
parentdb55e668d87d66b171c310241bdbcabfa790e2cf (diff)
downloadmongo-f9c36696a25d3837f512421755952736236bbed0.tar.gz
SERVER-29493 Make ThreadPoolTaskExecutor's destructor execute shutdown and join.
Diffstat (limited to 'src/mongo/executor/task_executor_test_fixture.h')
-rw-r--r--src/mongo/executor/task_executor_test_fixture.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/mongo/executor/task_executor_test_fixture.h b/src/mongo/executor/task_executor_test_fixture.h
index e90cbaec413..ff9904125d4 100644
--- a/src/mongo/executor/task_executor_test_fixture.h
+++ b/src/mongo/executor/task_executor_test_fixture.h
@@ -73,13 +73,6 @@ public:
*/
void setUp() override;
- /**
- * Destroys the replication executor.
- *
- * Shuts down and joins the running executor.
- */
- void tearDown() override;
-
void launchExecutorThread();
void shutdownExecutorThread();
void joinExecutorThread();
@@ -102,12 +95,6 @@ private:
NetworkInterfaceMock* _net;
std::unique_ptr<TaskExecutor> _executor;
-
- /**
- * kPreStart -> kRunning -> kJoinRequired -> kJoining -> kShutdownComplete
- */
- enum LifecycleState { kPreStart, kRunning, kJoinRequired, kJoining, kShutdownComplete };
- LifecycleState _executorState = LifecycleState::kPreStart;
};
} // namespace executor