5 writes to _state
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (5)
29internal static readonly CancellationTokenSource s_canceledSource = new CancellationTokenSource() { _state = States.NotifyingCompleteState }; 208_state = States.NotifyingCompleteState; 711Interlocked.CompareExchange(ref _state, States.NotifyingState, States.NotCanceledState) == States.NotCanceledState) 744Interlocked.Exchange(ref _state, States.NotifyingCompleteState); 832_state = States.NotifyingCompleteState;
5 references to _state
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (5)
50/// <summary>Legal values for <see cref="_state"/>.</summary> 73public bool IsCancellationRequested => _state != States.NotCanceledState; 76internal bool IsCancellationCompleted => _state == States.NotifyingCompleteState; 487if (_state == States.NotCanceledState) 563if (mre != null && _state != States.NotifyingState)