Boost logo

Boost :

From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2006-12-11 16:19:21


Anthony Williams wrote:
> I believe the following is a valid scenario:
>
> Thread A:
>
> WaitForSingleObject(hSemaphore) // blocks
>
> Thread B:
>
> ReleaseSemaphore(hSemaphore,1)
>
> Thread C:
>
> WaitForSingleObject(hSemaphore) // returns immediately
>
> Thread A still blocked
>
> I can't remember where I got this impression, and I may be wrong.
>
No, you're absolutely right. This is something that, for example, The
Old New Thing had an article about.

Sebastian Redl


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