Ejemplo n.º 1
0
 public bool SetCompleted() => CompletedWaitHandle.Set();
Ejemplo n.º 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);
            }
Ejemplo n.º 3
0
 public bool WaitCompleted() => CompletedWaitHandle.WaitOne();