|
Boost Users : |
Subject: Re: [Boost-users] [boost-users] [boost_thread] Condition
From: Eloi Du Bois (eloi.du.bois_at_[hidden])
Date: 2010-11-26 15:29:36
Excellent ! Thank you very much, that is exactly what I need.
2010/11/26 Eric J. Holtman <eric_at_[hidden]>
> On 11/26/2010 4:48 AM, Eloi Du Bois wrote:
> > Hi all,
> >
> > I would like to know how can I do the following:
> >
> > I have n working threads. Each one has a loop preceded by a wait
> condition
> > (1).
> > When the wait condition is unlocked, the thread takes a task on a queue,
> and
> > process the task.
> >
> > I need to make something in the submit task function that wait until all
> > processes are on the wait condition (1).
> >
>
>
> I think this is exactly what a 'barrier' does.
>
>
> http://www.boost.org/doc/libs/1_45_0/doc/html/thread/synchronization.html#thread.synchronization.barriers
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
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