Boost logo

Boost :

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
> >>arguments...
> >
> >
> > 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)


(Subject: std0X::expected_exception<T>())

Boost list run by bdawes at, gregod at, cpdaniel at, john at