Update missing WaitHelper attributes
authorMarek Safar <marek.safar@gmail.com>
Fri, 22 May 2015 15:26:26 +0000 (17:26 +0200)
committerMarek Safar <marek.safar@gmail.com>
Mon, 2 May 2016 22:10:20 +0000 (00:10 +0200)
mcs/class/referencesource/mscorlib/system/threading/synchronizationcontext.cs

index b890543beb47af34f9a6857e078c70c9b40d00df..2f3d59b73808364336787c7adc9cdb1a98940ffe 100644 (file)
@@ -162,18 +162,18 @@ namespace System.Threading
                                 
         // Static helper to which the above method can delegate to in order to get the default 
         // COM behavior.
+        [System.Security.SecurityCritical]  // auto-generated_required
+        [CLSCompliant(false)]
+        [PrePrepareMethod]
+        [ResourceExposure(ResourceScope.None)]
+        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)]
 #if MONO
         protected static int WaitHelper(IntPtr[] waitHandles, bool waitAll, int millisecondsTimeout)
         {
             throw new NotImplementedException ();
         }
 #else
-        [System.Security.SecurityCritical]  // auto-generated_required
-        [CLSCompliant(false)]
-        [PrePrepareMethod]
-        [ResourceExposure(ResourceScope.None)]
-        [MethodImplAttribute(MethodImplOptions.InternalCall)]       
-        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)]
+        [MethodImplAttribute(MethodImplOptions.InternalCall)]
         protected static extern int WaitHelper(IntPtr[] waitHandles, bool waitAll, int millisecondsTimeout);
 #endif
 #endif