$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] thread running many times
From: Igor R (boost.lists_at_[hidden])
Date: 2011-09-12 02:14:38
> Thanks, I understand, so my group is after join_all empty, so I change my code to:
>
> for(i=0; i < iteration; ++i) {
> Â Â Â create thread group
> Â Â Â run thread group with join_all for parallel part
> Â Â Â run serial part
> }
>
> so on each iteration I need to create a new thread group
The group is not empty, it contains all those boost::thread objects
you put there. But actual threads associated with those objects are
already over at this point. So you have to create & launch another
ones.