[Mono-bugs] [Bug 561792] WaitAny does not consistently return when waiting on more than one WaitHandle

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jan 8 12:44:39 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=561792

http://bugzilla.novell.com/show_bug.cgi?id=561792#c4


--- Comment #4 from Thomas Philpot <tom.philpot at logos.com> 2010-01-08 17:44:37 UTC ---
Example uses of the 2nd attachment:

# Successful case
ws1048-snow:Downloads tom.philpot$ /opt/mono-r147679/bin/mono WaitAnyTest2.exe
5000 
1/8/2010 9:16:45 AM ============== Wait2: Calling WaitAny with 2 WaitHandles
1/8/2010 9:16:45 AM ============== Setup wait handles, sleeping for 5s...
1/8/2010 9:16:50 AM ============== done sleeping.
1/8/2010 9:16:50 AM ============== Setting event 2.
1/8/2010 9:16:51 AM ============== Wait2: WaitAny(2) returned 1.
1/8/2010 9:16:51 AM ============== RegisteredWaitForSingleObjectCallback
called. TimedOut False
1/8/2010 9:16:51 AM ============== Waited for 0.701 seconds


# Failure case
ws1048-snow:Downloads tom.philpot$ /opt/mono-r147679/bin/mono WaitAnyTest2.exe
30000 
1/8/2010 9:16:56 AM ============== Wait2: Calling WaitAny with 2 WaitHandles
1/8/2010 9:16:56 AM ============== Setup wait handles, sleeping for 30s...
1/8/2010 9:17:26 AM ============== done sleeping.
1/8/2010 9:17:26 AM ============== Setting event 2.
1/8/2010 9:22:26 AM ============== Waited for 300.006 seconds

# A sleep time of 30 seconds always seem to cause a failure, 5 seconds seems to
pass.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list