Behavior of WaitForMultipleObjects when multiple handles signal at the same time

后端 未结 4 980
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-13 09:24

Given: I fill up an array of handles with auto reset events and pass it off to WaitForMultipleObjects with bWaitAll = FALSE.

From MSDN: “When bWaitAll is FALSE, th

4条回答
  •  滥情空心
    2021-01-13 09:42

    Only the auto-reset event that ended the wait (whose index is returned) will be reset. If the wait times out no events will be reset.

    cf https://blogs.msdn.microsoft.com/oldnewthing/20150409-00/?p=44273

提交回复
热议问题