Implemented fast version of ThreadLocal<T>.
[mono.git] / mcs / class / corlib / System.Threading / AutoResetEvent.cs
index 589693de8ff0cec9407c601b594093096de65e33..c6f3e2b47903940e042e684537d021c049bf2f9e 100644 (file)
 
 using System;
 using System.Runtime.CompilerServices;
-
 using System.Runtime.InteropServices;
 
 namespace System.Threading 
 {
-
        [ComVisible (true)]
        public sealed class AutoResetEvent : EventWaitHandle
        {
@@ -47,25 +45,5 @@ namespace System.Threading
                        : base(initialState, EventResetMode.AutoReset)
                {
                }
-
-               // Methods
-
-/* Need BOOTSTRAP_NET_2_0 because System.Threading.Timer wants to use
- * the Set and Reset methods that have moved to EventWaitHandle in the
- * 2.0 profile
- */
-#if BOOTSTRAP_NET_2_0
-               public bool Set() {
-                       CheckDisposed ();
-                       
-                       return(NativeEventCalls.SetEvent_internal(Handle));
-               }
-
-               public bool Reset() {
-                       CheckDisposed ();
-                       
-                       return(NativeEventCalls.ResetEvent_internal(Handle));
-               }
-#endif
        }
 }