示例#1
0
        /// <summary>
        /// Cancellation handler for CancellationToken
        /// </summary>
        /// <param name="obj">ConditionVariable object</param>
        private static void CancellationTokenCanceledEventHandler(object obj)
        {
            MonitorObject monitorObject = obj as MonitorObject;

            TurboContract.Assert(monitorObject != null, conditionString: "monitorObject != null");
            monitorObject.PulseAll();
        }
示例#2
0
 /// <summary>
 /// Cancellation handler for CancellationToken
 /// </summary>
 /// <param name="obj">ConditionVariable object</param>
 private static void CancellationTokenCanceledEventHandler(object obj)
 {
     MonitorObject monitorObject = obj as MonitorObject;
     Debug.Assert(monitorObject != null);
     monitorObject.PulseAll();
 }