Ejemplo n.º 1
0
        /// <summary>
        /// Cancellation handler for CancellationToken
        /// </summary>
        /// <param name="obj">ConditionVariable object</param>
        private static void CancellationTokenCanceledEventHandler(object obj)
        {
            SignalWaiter signalWaiter = obj as SignalWaiter;

            TurboContract.Assert(signalWaiter != null, conditionString: "signalWaiter != null");
            signalWaiter.SignalAll();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Cancellation handler for CancellationToken
        /// </summary>
        /// <param name="obj">ConditionVariable object</param>
        private static void CancellationTokenCanceledEventHandler(object obj)
        {
            SignalWaiter signalWaiter = obj as SignalWaiter;

            Debug.Assert(signalWaiter != null);
            signalWaiter.SignalAll();
        }