mirror of
https://github.com/allankoechke/ThreadPool.git
synced 2026-12-01 01:08:50 +00:00
Use C++11 for(a:b) loop.
This commit is contained in:
committed by
Jakob Progsch
parent
0fb9215398
commit
b168ca0037
@@ -91,8 +91,8 @@ inline ThreadPool::~ThreadPool()
|
||||
stop = true;
|
||||
}
|
||||
condition.notify_all();
|
||||
for(size_t i = 0;i<workers.size();++i)
|
||||
workers[i].join();
|
||||
for(std::thread & worker: workers)
|
||||
worker.join();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user