예제 #1
0
        public bool Reset()
        {
            /* This needs locking since another thread could dispose the handle */
            lock (this) {
                CheckDisposed();

                return(NativeEventCalls.ResetEvent(SafeWaitHandle));
            }
        }
예제 #2
0
        [System.Security.SecuritySafeCritical]  // auto-generated
        public bool Reset()
        {
#if MONO
            var res = NativeEventCalls.ResetEvent(safeWaitHandle);
#else
            bool res = Win32Native.ResetEvent(safeWaitHandle);
#endif
            if (!res)
#if MONO
            { throw new IOException(); }
#else
            { __Error.WinIOError(); }
#endif
            return(res);
        }