diff --git a/src/thread_pool.cpp b/src/thread_pool.cpp index e4943a0..48e4d25 100644 --- a/src/thread_pool.cpp +++ b/src/thread_pool.cpp @@ -35,8 +35,7 @@ void ThreadPool::ScheduleTask(TaskFunc fn) { void ThreadPool::ThreadFn() { TaskFunc function; for(;;) { - { - std::unique_lock lock{ this->lock }; + { std::unique_lock lock{ this->lock }; while (!this->shutdown && this->taskQueue.empty()) { this->threadNotifier.wait(lock); }