Revert no longer needed changes
authorMarek Safar <marek.safar@gmail.com>
Mon, 23 Feb 2015 16:01:54 +0000 (17:01 +0100)
committerMarek Safar <marek.safar@gmail.com>
Mon, 2 May 2016 22:07:58 +0000 (00:07 +0200)
mcs/class/referencesource/System.Core/System/threading/ReaderWriterLockSlim/ReaderWriterLockSlim.cs

index 98e22cb42aec87b2ddb5db4e8d586782e191d27f..19db1acb0a4349d5cb97d4570cb503ae31171d69 100644 (file)
@@ -5,7 +5,7 @@ using System.Threading;
 using System.Security.Permissions;
 using System.Runtime.CompilerServices;
 #if FEATURE_NETCORE
-using System.Core;  // for strongly typed resources
+//using System.Core;  // for strongly typed resources
 #endif
 
 namespace System.Threading
@@ -53,12 +53,10 @@ namespace System.Threading
     /// for more than a few instructions (in particular, we never call event APIs
     /// or in fact any non-trivial API while holding the spin lock).   
     /// </summary>
-#if !DISABLE_CAS_USE
 #if !FEATURE_NETCORE
     [HostProtection(SecurityAction.LinkDemand, Synchronization=true, ExternalThreading=true)]
 #endif
     [HostProtection(MayLeakOnAbort = true)]
-#endif
     public class ReaderWriterLockSlim : IDisposable
     {
         //Specifying if the lock can be reacquired recursively.