From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2003-06-07 10:05:24
Stefan Seefeld wrote:
> >>And then there is the other semaphore I use to count the free slots,
> >>which you didn't comment on, probably because it didn't fit into your
> > No, actually, it strengthens the argument, because you now have even more
> > state that needs to be synchronized to ensure against race conditions.
> I don't understand this. The state in question is the difference between
> the capacity of the queue and its current length. The only variable holding
> this state is the semaphore ('my_free' in my code snippet). What do I need
> to synchronize here ?
Hi again, Stefan. ;-)
(Subject: Re: Example C++ pthreads producers consumers project)
-- http://google.com/groups?selm=3EE08DDC.A3A7A32D%40web.de (Subject: std0X::expected_exception<T>())
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk