Re: How does KeWaitForMultipleObjects() handle multiple signaled objects? by Alexander
Alexander
Thu Mar 09 10:40:40 CST 2006
When WFMO returns STATUS_WAIT_n, you can only be sure about object n. If
satisfied wait causes side effects on your wait object (like a semaphor,
mutes or sync event), then only that object will change.
There is no such thing as multiple objects signalled at the same time.
Object signalling is an atomic operation, done under dispatcher spinlock. It
causes immediate satisfaction of any wait, there is no delay when other
objects micht have been signalled.
"h.wulff" <zuhause@aol.com> wrote in message
news:dupkjr$iab$1@news.shlink.de...
> Hello,
>
> If KeWaitForMultipleObjects() waits (with WaitAny) for multiple objects
> and they get signaled more or less at the same time. Does
> KeWaitForMultipleObjects() return for each signaled object with
> STATUS_WAIT_*? Or does KeWaitForMultipleObjects() return once and I have
> to read the state of each object?
>
> Thanks!
> --
>
> h.wulff