Skip to content

Commit

Permalink
Use C++11 for(a:b) loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
wilx authored and progschj committed Sep 25, 2014
1 parent 0fb9215 commit b168ca0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ThreadPool.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b168ca0

Please sign in to comment.