
13 Apr
2012
13 Apr
'12
11:12 p.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