5 writes to _state
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (5)
29
internal static readonly CancellationTokenSource s_canceledSource = new CancellationTokenSource() {
_state
= States.NotifyingCompleteState };
208
_state
= States.NotifyingCompleteState;
711
Interlocked.CompareExchange(ref
_state
, States.NotifyingState, States.NotCanceledState) == States.NotCanceledState)
744
Interlocked.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>
73
public bool IsCancellationRequested =>
_state
!= States.NotCanceledState;
76
internal bool IsCancellationCompleted =>
_state
== States.NotifyingCompleteState;
487
if (
_state
== States.NotCanceledState)
563
if (mre != null &&
_state
!= States.NotifyingState)