[corlib] Use ManualResetEvent.WaitOne instead of Thread.Sleep to test Thread.Interrupt
authorLudovic Henry <ludovic.henry@xamarin.com>
Tue, 30 Jun 2015 20:53:24 +0000 (17:53 -0300)
committerLudovic Henry <ludovic.henry@xamarin.com>
Tue, 14 Jul 2015 22:04:15 +0000 (19:04 -0300)
commit5839d38c2410227b3bc8f2a5860007e63389721c
treeb1e4799ddb056c2a55ab25f46bdc7be62e1a86d9
parent02a15d6cf0c019094d57daf11012e614b63e6dfc
[corlib] Use ManualResetEvent.WaitOne instead of Thread.Sleep to test Thread.Interrupt

This is because Thread.Sleep does not use the thread interrupt mechanism, while WaitHandle.{WaitOne, WaitAll and WaitAny} do
mcs/class/corlib/Test/System.Threading/ThreadTest.cs