summaryrefslogtreecommitdiff
path: root/src/mongo/util/concurrency/thread_pool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/concurrency/thread_pool.cpp')
-rw-r--r--src/mongo/util/concurrency/thread_pool.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/util/concurrency/thread_pool.cpp b/src/mongo/util/concurrency/thread_pool.cpp
index f4597f27e4d..bc612ef4b43 100644
--- a/src/mongo/util/concurrency/thread_pool.cpp
+++ b/src/mongo/util/concurrency/thread_pool.cpp
@@ -465,7 +465,9 @@ void ThreadPool::Impl::_consumeTasks() {
"minThreads"_attr = _options.minThreads);
}
- auto wake = [&] { return _state != running || !_pendingTasks.empty(); };
+ auto wake = [&] {
+ return _state != running || !_pendingTasks.empty();
+ };
MONGO_IDLE_THREAD_BLOCK;
if (waitDeadline) {
_workAvailable.wait_until(lk, waitDeadline->toSystemTimePoint(), wake);