示例#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();