chore: minor formatting adjustment
This commit is contained in:
parent
f20139d0fa
commit
577f7c953b
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue