CloseEvent_internal() private method

private CloseEvent_internal ( IntPtr handle ) : void
handle System.IntPtr
return void
コード例 #1
0
ファイル: WaitHandle.cs プロジェクト: raj581/Marvin
        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;
                    }
                }
            }
        }