From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2003-06-04 14:23:18
Nicolas Fleury wrote:
> > http://google.com/groups?selm=3CED3306.DF6DB829%40web.de
> > (Subject: Re: many semaphores)
> Would it be possible to post some code that "experience has shown" to be
> error-prone using semaphores comparing with conditions/mutexes?
Sure... thanks to the Microsoft Corp.
Take a look at their brain-damaged "metered section" semaphore
implementation. Note that MS "auto-reset event" is nothing but
a binary sema (well, brain-dead "pulsing" aside for a moment).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk