When i using
int event_idx = WaitHandle.WaitAny(ExportEvents.ToArray());
and if event is in signaled state before WaitAny function calls then WaitAny function will:
- result this event id immediately
- skip this event and never result this id
?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From the documentation:
Notice is says it returns when a handle is signaled, not when it becomes signaled. That means if some handle is already signaled, the method returns immediately.
Of course, it’s possible that a handle is in signaled state before the call, but it’s not signaled during the call, due to a race condition.