Thread.Interrupt is not dependent on MONO_FEATURE_THREAD_SUSPEND_RESUME.
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Wed, 18 Nov 2015 13:11:48 +0000 (14:11 +0100)
committerMarek Safar <marek.safar@gmail.com>
Tue, 3 May 2016 09:40:05 +0000 (11:40 +0200)
mcs/class/referencesource/mscorlib/system/threading/thread.cs

index dbe81e12e7628325e3c1d646caedf02f9e427f3f..f45df0fcda81ad133b489c82b26a1700f4177f06 100644 (file)
@@ -616,7 +616,9 @@ namespace System.Threading {
         [ResourceExposure(ResourceScope.None)]
         [MethodImplAttribute(MethodImplOptions.InternalCall)]
         private extern void ResumeInternal();
+#endif
 
+#if !FEATURE_CORECLR || MONO
         /*=========================================================================
         ** Interrupts a thread that is inside a Wait(), Sleep() or Join().  If that
         ** thread is not currently blocked in that manner, it will be interrupted