$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [thread] Do we need thread_group now?
From: Howard Hinnant (howard.hinnant_at_[hidden])
Date: 2012-04-13 19:12:39
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