Skip to content

Commit b168ca0

Browse files
wilxprogschj
authored andcommitted
Use C++11 for(a:b) loop.
1 parent 0fb9215 commit b168ca0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ThreadPool.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ inline ThreadPool::~ThreadPool()
9191
stop = true;
9292
}
9393
condition.notify_all();
94-
for(size_t i = 0;i<workers.size();++i)
95-
workers[i].join();
94+
for(std::thread & worker: workers)
95+
worker.join();
9696
}
9797

9898
#endif

0 commit comments

Comments
 (0)