5 writes to _cancellationState
System.Threading.Tasks.Dataflow (5)
Base\DataflowBlock.cs (5)
425
_cancellationState
= CANCELLATION_STATE_REGISTERED;
574
Interlocked.CompareExchange(ref source.
_cancellationState
, CANCELLATION_STATE_COMPLETING, CANCELLATION_STATE_REGISTERED) == CANCELLATION_STATE_REGISTERED)
673
Interlocked.CompareExchange(ref
_cancellationState
, CANCELLATION_STATE_COMPLETING, curState) == curState))
700
Interlocked.CompareExchange(ref
_cancellationState
, CANCELLATION_STATE_RESERVED, CANCELLATION_STATE_REGISTERED) == CANCELLATION_STATE_REGISTERED);
722
if (Interlocked.CompareExchange(ref
_cancellationState
, CANCELLATION_STATE_REGISTERED, CANCELLATION_STATE_RESERVED) != CANCELLATION_STATE_RESERVED)
8 references to _cancellationState
System.Threading.Tasks.Dataflow (8)
Base\DataflowBlock.cs (8)
525
if (
_cancellationState
!= CANCELLATION_STATE_NONE)
567
Debug.Assert(source.
_cancellationState
!= CANCELLATION_STATE_NONE,
573
if (source.
_cancellationState
== CANCELLATION_STATE_REGISTERED && // fast check to avoid the interlocked if we can
591
bool consumeToAccept =
_cancellationState
!= CANCELLATION_STATE_NONE;
608
Debug.Assert(
_cancellationState
== CANCELLATION_STATE_COMPLETING,
662
int curState =
_cancellationState
;
699
(
_cancellationState
== CANCELLATION_STATE_NONE || // avoid synchronization when cancellation is not in play
720
if (
_cancellationState
!= CANCELLATION_STATE_NONE)