[Mono-devel-list] Patch for WaitHandle.WaitAny

Sébastien Robitaille sebastien.robitaille at croesus.com
Tue Jul 13 22:46:54 EDT 2004


Hi,

here is a small patch to correct Defect #61511.

The problem arises when WaitHandle.WaitAny is used with multiple AutoResetEvent. If many events get signaled "at the same time",
they will all become non-signaled when only one should (The one at the index returned by the WaitAny method).

There is also a small test case attached to this message.
Can somebody review this change please.

Regards
Sébas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wait.c.patch
Type: application/octet-stream
Size: 620 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040713/00dbb9a2/attachment.obj 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: WaitAny_TestCase.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040713/00dbb9a2/attachment.pl 


More information about the Mono-devel-list mailing list