6 Aug
2008
6 Aug
'08
1:35 p.m.
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