chore: minor formatting adjustment

This commit is contained in:
Sara Gerretsen 2025-09-23 16:05:06 +02:00
parent f20139d0fa
commit 577f7c953b

View file

@ -35,8 +35,7 @@ void ThreadPool::ScheduleTask(TaskFunc fn) {
void ThreadPool::ThreadFn() {
TaskFunc function;
for(;;) {
{
std::unique_lock<std::mutex> lock{ this->lock };
{ std::unique_lock<std::mutex> lock{ this->lock };
while (!this->shutdown && this->taskQueue.empty()) {
this->threadNotifier.wait(lock);
}