$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-08-06 09:35:39
Ruediger Berlich:
...
> If the number of consumer threads would be known in advance, Boost's
> Thread-Barrier might be a possible choice. As I do not know this number,
> however, I'll probably have to do my own locking (see my sample
> implementation).
You might want to look at Phasers:
http://www.infoq.com/news/2008/07/phasers
http://www.cs.rice.edu/%7Evs3/PDF/SPSS08-phasers.pdf