summaryrefslogtreecommitdiff
path: root/src/mongo/transport/service_executor_synchronous.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/transport/service_executor_synchronous.cpp')
-rw-r--r--src/mongo/transport/service_executor_synchronous.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/transport/service_executor_synchronous.cpp b/src/mongo/transport/service_executor_synchronous.cpp
index 79fc88e0033..25104fd46dd 100644
--- a/src/mongo/transport/service_executor_synchronous.cpp
+++ b/src/mongo/transport/service_executor_synchronous.cpp
@@ -67,7 +67,7 @@ Status ServiceExecutorSynchronous::shutdown(Milliseconds timeout) {
_stillRunning.store(false);
- stdx::unique_lock<stdx::mutex> lock(_shutdownMutex);
+ stdx::unique_lock<Latch> lock(_shutdownMutex);
bool result = _shutdownCondition.wait_for(lock, timeout.toSystemDuration(), [this]() {
return _numRunningWorkerThreads.load() == 0;
});