Boost logo

Boost Users :

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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net