| 1234567891011121314151617181920212223242526272829303132333435363738 |
- //
- // System.Threading.ManualResetEvent.cs
- //
- // Author:
- // Dick Porter ([email protected])
- // Veronica De Santis ([email protected])
- //
- // (C) Ximian, Inc. http://www.ximian.com
- //
- using System;
- using System.Runtime.CompilerServices;
- namespace System.Threading
- {
- public sealed class ManualResetEvent : WaitHandle
- {
- // Constructor
- public ManualResetEvent (bool initialState)
- {
- Handle = NativeEventCalls.CreateEvent_internal (true, initialState, null);
- }
- // Methods
- public bool Set()
- {
- return (NativeEventCalls.SetEvent_internal (Handle));
- }
- public bool Reset()
- {
- return(NativeEventCalls.ResetEvent_internal (Handle));
- }
- }
- }
|