Subj : Re: waitformultipleobjects() on several semaphores ? To : comp.programming.threads From : Neill Clift [MSFT] Date : Fri Feb 04 2005 08:53 am "Joseph Seigh" wrote in message news:opsln87xpcbs6ffg@grunion... > On Fri, 4 Feb 2005 04:04:27 +0100, mandatory > wrote: > > The bWaitAll parameter must be set to FALSE so that the wait will return > if any of the wait objects have been signaled. You'll have the check the > return code to correctly identify which semaphore got signaled. If > Microsoft's WaitForMultipleObjects implementation allows for more than > one semaphore signal to get consumed on a wait any option then you'll have > to find another solution. I don't think it would allow that. That > would be pretty stupid, even for Microsoft. > The API will only create one side effect in the list of objects for a wait any call. So you would own one mutex or consume one semaphore release etc. .