System.Threading.NativeEventCalls.CloseEvent_internal C# (CSharp) Method

CloseEvent_internal() private method

private CloseEvent_internal ( IntPtr handle ) : void
handle System.IntPtr
return void
		public static extern void CloseEvent_internal (IntPtr handle);

Usage Example

Esempio n. 1
0
        protected virtual void Dispose(bool explicitDisposing)
        {
            // Check to see if Dispose has already been called.
            if (!disposed)
            {
                disposed = true;
                if (os_handle == InvalidHandle)
                {
                    return;
                }

                lock (this) {
                    if (os_handle != InvalidHandle)
                    {
                        NativeEventCalls.CloseEvent_internal(os_handle);
                        os_handle = InvalidHandle;
                    }
                }
            }
        }