[Mono-bugs] [Bug 41292][Maj] Changed - Some threads blocking on AutoResetEvent.WaitOne don't receive event
Mon, 11 Aug 2003 21:15:02 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by firstname.lastname@example.org.
--- shadow/41292 2003-07-29 09:34:11.000000000 -0400
+++ shadow/41292.tmp.2283 2003-08-11 21:15:01.000000000 -0400
@@ -1,12 +1,12 @@
Product: Mono/Class Libraries
OS: GNU/Linux [Other]
@@ -85,6 +85,31 @@
------- Additional Comments From email@example.com 2003-07-29 09:34 -------
According to all the w32 documentation I can find (including the
.net class docs) setting an AutoResetEvent should only release one
thread, even if many are waiting. Do you have some contradictory
+------- Additional Comments From firstname.lastname@example.org 2003-08-11 21:15 -------
+From the MS documentation on CreateEvent:
+"When the state of an auto-reset event object is signaled, it remains
+signaled until a single waiting thread is released; the system then
+automatically resets the state to nonsignaled. If no threads are
+waiting, the event object's state remains signaled."
+It says that when 1 single thread released, the state is changed to
+nonsignaled, but doesn't specify that it will only wake up 1 thread...
+Moreover, running the test under MS runtime it says "Test Ok" for all
+Under mono with current CVS, only 1 fails:
+*** Testing multiple thread blocks on AutoResetEvent ***
+The following thread ids did not receive an event:
+ Thread #1
+ Thread #2
+ Thread #3
+ Thread #4