예제 #1
0
 public bool SetCompleted() => CompletedWaitHandle.Set();
예제 #2
0
            /// <summary>
            /// Process the completion of a user-registered wait (call the callback).
            /// </summary>
            /// <param name="state">A <see cref="CompletedWaitHandle"/> object representing the wait completion.</param>
            private void CompleteWait(object state)
            {
                CompletedWaitHandle handle = (CompletedWaitHandle)state;

                handle.CompletedHandle.PerformCallback(handle.TimedOut);
            }
예제 #3
0
 public bool WaitCompleted() => CompletedWaitHandle.WaitOne();