Boost logo

Boost :

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.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndllpro/html/msdn_metrsect.asp

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

regards,
alexander.

--
http://google.com/groups?selm=c29b5e33.0201240132.3d78369f%40posting.google.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk