2 parents f659749 + 694dd35 commit 20061c5Copy full SHA for 20061c5
1 file changed
ThreadPool.h
@@ -38,7 +38,7 @@ inline ThreadPool::ThreadPool(size_t threads)
38
workers.emplace_back(
39
[this]
40
{
41
- while(true)
+ for(;;)
42
43
std::unique_lock<std::mutex> lock(this->queue_mutex);
44
while(!this->stop && this->tasks.empty())
0 commit comments