Definition at line 570 of file CancellationTokenSource.cs.
571 {
574 {
576 return;
577 }
578 registrations.ThreadIDExecutingCallbacks = Environment.CurrentManagedThreadId;
580 try
581 {
582 while (true)
583 {
586 try
587 {
590 {
591 break;
592 }
594 {
595 callbacks.Next.Prev = null;
596 }
597 registrations.Callbacks =
callbacks.Next;
598 registrations.ExecutingCallbackId =
callbacks.Id;
601 }
602 finally
603 {
605 }
607 try
608 {
609 if (
callbacks.SynchronizationContext !=
null)
610 {
612 {
614 callbackNode.Registrations.ThreadIDExecutingCallbacks = Environment.CurrentManagedThreadId;
617 registrations.ThreadIDExecutingCallbacks = Environment.CurrentManagedThreadId;
618 }
619 else
620 {
622 }
623 }
625 {
627 }
628 }
629 }
630 finally
631 {
634 }
636 {
637 return;
638 }
639 throw new AggregateException(
list);
640 }
void Add(TKey key, TValue value)
Registrations _registrations
References System.Threading.CancellationTokenSource._registrations, System.Threading.CancellationTokenSource._state, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Environment.CurrentManagedThreadId, System.Threading.Interlocked.Exchange(), System.item, System.L, System.list, and System.s.
Referenced by System.Threading.CancellationTokenSource.NotifyCancellation().