24 references to TASK_STATE_CANCELED
mscorlib (24)
system\threading\Tasks\Future.cs (3)
472
TASK_STATE_COMPLETION_RESERVED | TASK_STATE_RAN_TO_COMPLETION | TASK_STATE_FAULTED |
TASK_STATE_CANCELED
))
602
TASK_STATE_COMPLETION_RESERVED | TASK_STATE_RAN_TO_COMPLETION | TASK_STATE_FAULTED |
TASK_STATE_CANCELED
))
649
Task<object>.TASK_STATE_COMPLETION_RESERVED | Task<object>.
TASK_STATE_CANCELED
|
system\threading\Tasks\Task.cs (21)
203
private const int TASK_STATE_COMPLETED_MASK =
TASK_STATE_CANCELED
| TASK_STATE_FAULTED | TASK_STATE_RAN_TO_COMPLETION;
321
m_stateFlags =
TASK_STATE_CANCELED
| TASK_STATE_CANCELLATIONACKNOWLEDGED | optionFlags;
971
return AtomicStateUpdate(TASK_STATE_STARTED,
TASK_STATE_CANCELED
| TASK_STATE_STARTED);
1264
Contract.Assert((m_stateFlags &
TASK_STATE_CANCELED
) != 0, "Task.RunSynchronously: expected TASK_STATE_CANCELED to be set");
1436
else if ((sf &
TASK_STATE_CANCELED
) != 0) rval = TaskStatus.Canceled;
1464
return (m_stateFlags & (
TASK_STATE_CANCELED
| TASK_STATE_FAULTED)) ==
TASK_STATE_CANCELED
;
2248
AtomicStateUpdate(TASK_STATE_WAITING_ON_CHILDREN, TASK_STATE_FAULTED |
TASK_STATE_CANCELED
| TASK_STATE_RAN_TO_COMPLETION);
2300
completionState =
TASK_STATE_CANCELED
;
2474
TASK_STATE_THREAD_WAS_ABORTED | TASK_STATE_RAN_TO_COMPLETION | TASK_STATE_FAULTED |
TASK_STATE_CANCELED
))
2742
ref previousState) && (previousState &
TASK_STATE_CANCELED
) == 0)
2760
int prevState = Interlocked.Exchange(ref m_stateFlags, m_stateFlags |
TASK_STATE_CANCELED
);
2761
if ((prevState &
TASK_STATE_CANCELED
) == 0)
3432
mustCleanup = AtomicStateUpdate(
TASK_STATE_CANCELED
, TASK_STATE_DELEGATE_INVOKED |
TASK_STATE_CANCELED
);
3462
mustCleanup = AtomicStateUpdate(
TASK_STATE_CANCELED
,
TASK_STATE_CANCELED
| TASK_STATE_DELEGATE_INVOKED);
3466
mustCleanup = AtomicStateUpdate(
TASK_STATE_CANCELED
,
3467
TASK_STATE_CANCELED
| TASK_STATE_STARTED | TASK_STATE_RAN_TO_COMPLETION |
3541
Contract.Assert((m_stateFlags & (
TASK_STATE_CANCELED
| TASK_STATE_COMPLETION_RESERVED)) != 0, "Task.CancellationCleanupLogic(): Task not canceled or reserved.");
3547
Interlocked.Exchange(ref m_stateFlags, m_stateFlags |
TASK_STATE_CANCELED
);