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