2 // System.Threading.AutoResetEvent.cs
5 // Dick Porter (dick@ximian.com)
6 // Veronica De Santis (veron78@interfree.it)
8 // (C) Ximian, Inc. http://www.ximian.com
12 using System.Runtime.CompilerServices;
14 namespace System.Threading
17 public sealed class AutoResetEvent : WaitHandle
20 public AutoResetEvent(bool initialState) {
21 Handle = NativeEventCalls.CreateEvent_internal(false,initialState,null);
27 return(NativeEventCalls.SetEvent_internal(Handle));
31 return(NativeEventCalls.ResetEvent_internal(Handle));