$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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