
14 Apr
2012
14 Apr
'12
1:12 a.m.
On Apr 10, 2012, at 1:32 PM, Vicente J. Botet Escriba wrote:
join_all(threads);
Is it worth the electrons to turn this into an algorithm? std::for_each(threads.begin(), threads.end(), [](thread& t) {t.join();}); or even simpler (really I think std::for_each is probably obsolete): for (auto& t : threads) t.join(); Howard