From a518a05d41ddf661e198756e73ba2843ab59b5a0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 21 May 2024 19:59:58 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/mbgl/util/thread_pool.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mbgl/util/thread_pool.cpp b/src/mbgl/util/thread_pool.cpp index 94e1190693f..cc80dcd9cd1 100644 --- a/src/mbgl/util/thread_pool.cpp +++ b/src/mbgl/util/thread_pool.cpp @@ -42,15 +42,15 @@ std::thread ThreadedSchedulerBase::makeSchedulerThread(size_t index) { if (!terminated && !didWork) { cvAvailable.wait(conditionLock); } - + if (terminated) { platform::detachThread(); break; } - + // Let other threads run conditionLock.unlock(); - + didWork = false; std::vector> pending; {