Commit Graph
3 Commits
Author SHA1 Message Date
Rolf Bjarne Kvinge 87810b523a Make WaitHandle.Wait* behave the same wrt WAIT_IO_COMPLETION. Fixes #8566.
Make the all check for exceptions if interrupted, and wait again
with a re-calculated timeout if no exceptions were to be thrown.

This fixes a deadlock in WaitAny, because WaitAny wasn't checking
for exceptions, just re-calculating the timeout. It also makes
the methods behave the same wrt other APC reasons.
2012-11-28 00:08:11 +01:00
Zoltan Varga 3f2694d7c8 2010-02-08 Zoltan Varga <[email protected]>
* WaitHandleTest.cs: Add a test for #576039.

svn path=/trunk/mcs/; revision=151018
2010-02-08 10:24:30 +00:00
Sebastien Pouliot dff2c0d12a In System.Threading:
2009-10-21  Sebastien Pouliot  <[email protected]>

	* WaitHandle.cs: Add missing validations for 'millisecondsTimeout'
	in Wait[One|Any|All]. Also call the overloaded (bool) methods for
	WaitAll to reduce code duplication.

In .:
2009-10-21  Sebastien Pouliot  <[email protected]>

	* corlib_test.dll.sources: Add System.Threading/WaitHandleTest.cs

In Test/System.Threading:
2009-10-21  Sebastien Pouliot  <[email protected]>

	* WaitHandleTest.cs: New. Add test cases for Wait[One|All|Any]
	methods overloads (at least the one present in Silverlight 2)


svn path=/trunk/mcs/; revision=144529
2009-10-21 12:18:22 +00:00