From: Matthew Vogt (mvogt_at_[hidden])
Date: 2004-02-19 18:22:36
Vladimir Prus <ghost <at> cs.msu.su> writes:
> > I'm not sure how this could be worked into the syntax, though...
> Quite easily.
> thread_group g;
> safe_barrier sb(g);
> // elsewhere
> What's even more interesting, it can be implemented as wrapper on top of
> regular barrier: the 'wait' method would have to check that the waiting
> thread in in group and throw if it's not.
> Is it usefull? I don't know
I guess it depends on how worried you are about which threads are entering
Although, if you have an app where the question of which threads are entering
barriers is complex or confusing, you probably want to migrate it to dealing
purely with thread_groups for everything!
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk