Boost logo

Boost Users :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2005-09-07 18:29:48


Johan 't Hart wrote:
> (I'm not that familiair with news servers, so this post might appear for
> the
> second time. I hope to get an answer though)
>
> Hello,
>
> I'm quite a newbie in the boost world, and I read the documentation about
> boost::threads. Inthere I read that events were not included in boost
> because they were too error-phrone. That made me wonder how to do
> multithreading without events, for example, how do you make a thread wait
> for something to do without events? I don't know how to implement that
> with
> just mutexes.
>
> Can someone help me?

You want either, http://www.boost.org/doc/html/barrier.html
Or, http://www.boost.org/doc/html/condition.html
Based on what you are trying to do.

And of course reading the FAQ, which points you to the rational for not
having events...
http://www.boost.org/doc/html/threads/rationale.html#threads.rationale.events

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - Grafik/jabber.org

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