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