Use C++11 for(a:b) loop.

This commit is contained in:
Vaclav Zeman
2014-09-11 13:07:31 +02:00
committed by Jakob Progsch
parent 0fb9215398
commit b168ca0037

View File

@@ -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