public static void ResetEvent(WaitableObject waitableObject) { Debug.Assert(waitableObject != null); s_lock.Acquire(); try { waitableObject.UnsignalEvent(); } finally { s_lock.Release(); } }
public static void ResetEvent(IntPtr handle) { WaitableObject waitableObject = HandleManager.FromHandle(handle); s_lock.Acquire(); try { waitableObject.UnsignalEvent(); } finally { s_lock.Release(); } }
public static void ResetEvent(WaitableObject waitableObject) { Debug.Assert(waitableObject != null); LockHolder lockHolder = new LockHolder(s_lock); try { waitableObject.UnsignalEvent(ref lockHolder); } finally { lockHolder.Dispose(); } }