Skip to content

Commit 20061c5

Browse files
committed
Merge pull request progschj#10 from vadz/master
Fix MSVS 2013 warning about a condition being always true.
2 parents f659749 + 694dd35 commit 20061c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ThreadPool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ inline ThreadPool::ThreadPool(size_t threads)
3838
workers.emplace_back(
3939
[this]
4040
{
41-
while(true)
41+
for(;;)
4242
{
4343
std::unique_lock<std::mutex> lock(this->queue_mutex);
4444
while(!this->stop && this->tasks.empty())

0 commit comments

Comments
 (0)