Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 21, 2024
1 parent 6ad5b5c commit a518a05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mbgl/util/thread_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::shared_ptr<Queue>> pending;
{
Expand Down

0 comments on commit a518a05

Please sign in to comment.