132 references to InternalTaskOptions
mscorlib (132)
system\io\stream.cs (1)
950
s_nullReadTask = nullReadTask = new Task<int>(false, 0, (TaskCreationOptions)
InternalTaskOptions
.DoNotDispose, CancellationToken.None); // benign ----
system\runtime\compilerservices\AsyncMethodBuilder.cs (1)
833
return new Task<TResult>(false, result, (TaskCreationOptions)
InternalTaskOptions
.DoNotDispose, default(CancellationToken));
system\runtime\compilerservices\TaskAwaiter.cs (2)
282
if (etwLog.TasksSetActivityIds && (task.Options & (TaskCreationOptions)
InternalTaskOptions
.PromiseTask) != 0)
291
if (etwLog.TasksSetActivityIds && (task.Options & (TaskCreationOptions)
InternalTaskOptions
.PromiseTask) != 0)
system\threading\SemaphoreSlim.cs (1)
81
new Task<bool>(false, true, (TaskCreationOptions)
InternalTaskOptions
.DoNotDispose, default(CancellationToken));
system\threading\Tasks\Future.cs (24)
138
TaskCreationOptions.None,
InternalTaskOptions
.None, null)
162
TaskCreationOptions.None,
InternalTaskOptions
.None, null)
188
: this(function, Task.InternalCurrentIfAttached(creationOptions), default(CancellationToken), creationOptions,
InternalTaskOptions
.None, null)
218
: this(function, Task.InternalCurrentIfAttached(creationOptions), cancellationToken, creationOptions,
InternalTaskOptions
.None, null)
238
TaskCreationOptions.None,
InternalTaskOptions
.None, null)
262
TaskCreationOptions.None,
InternalTaskOptions
.None, null)
290
creationOptions,
InternalTaskOptions
.None, null)
323
creationOptions,
InternalTaskOptions
.None, null)
331
TaskCreationOptions creationOptions,
InternalTaskOptions
internalOptions, TaskScheduler scheduler,
351
TaskCreationOptions creationOptions,
InternalTaskOptions
internalOptions, TaskScheduler scheduler) :
354
if ((internalOptions &
InternalTaskOptions
.SelfReplicating) != 0)
362
TaskCreationOptions creationOptions,
InternalTaskOptions
internalOptions, TaskScheduler scheduler, ref StackCrawlMark stackMark) :
381
TaskCreationOptions creationOptions,
InternalTaskOptions
internalOptions, TaskScheduler scheduler) :
384
if ((internalOptions &
InternalTaskOptions
.SelfReplicating) != 0)
393
TaskCreationOptions creationOptions,
InternalTaskOptions
internalOptions, TaskScheduler scheduler, ref StackCrawlMark stackMark)
403
if ((internalOptions &
InternalTaskOptions
.SelfReplicating) != 0)
410
Task<TResult> f = new Task<TResult>(function, parent, cancellationToken, creationOptions, internalOptions |
InternalTaskOptions
.QueuedByRuntime, scheduler, ref stackMark);
418
TaskCreationOptions creationOptions,
InternalTaskOptions
internalOptions, TaskScheduler scheduler, ref StackCrawlMark stackMark)
428
if ((internalOptions &
InternalTaskOptions
.SelfReplicating) != 0)
434
Task<TResult> f = new Task<TResult>(function, state, parent, cancellationToken, creationOptions, internalOptions |
InternalTaskOptions
.QueuedByRuntime, scheduler, ref stackMark);
895
InternalTaskOptions
internalOptions;
1099
InternalTaskOptions
internalOptions;
1326
InternalTaskOptions
internalOptions;
1560
InternalTaskOptions
internalOptions;
system\threading\Tasks\FutureFactory.cs (10)
289
m_defaultCreationOptions,
InternalTaskOptions
.None, GetDefaultScheduler(currTask), ref stackMark);
318
m_defaultCreationOptions,
InternalTaskOptions
.None, GetDefaultScheduler(currTask), ref stackMark);
349
creationOptions,
InternalTaskOptions
.None, GetDefaultScheduler(currTask), ref stackMark);
391
creationOptions,
InternalTaskOptions
.None, scheduler, ref stackMark);
418
m_defaultCreationOptions,
InternalTaskOptions
.None, GetDefaultScheduler(currTask), ref stackMark);
449
m_defaultCreationOptions,
InternalTaskOptions
.None, GetDefaultScheduler(currTask), ref stackMark);
482
creationOptions,
InternalTaskOptions
.None, GetDefaultScheduler(currTask), ref stackMark);
525
creationOptions,
InternalTaskOptions
.None, scheduler, ref stackMark);
725
default(CancellationToken), TaskCreationOptions.None,
InternalTaskOptions
.None, null, ref stackMark);
1469
InternalTaskOptions
dontcare;
system\threading\Tasks\Parallel.cs (7)
315
}, TaskCreationOptions.None,
InternalTaskOptions
.SelfReplicating);
365
InternalTaskOptions
.None, parallelOptions.EffectiveTaskScheduler);
1063
InternalTaskOptions
internalOptions =
InternalTaskOptions
.SelfReplicating;
1378
InternalTaskOptions
internalOptions =
InternalTaskOptions
.SelfReplicating;
3465
InternalTaskOptions
.SelfReplicating);
system\threading\Tasks\Task.cs (64)
345
m_stateFlags = TASK_STATE_WAITINGFORACTIVATION | (int)
InternalTaskOptions
.PromiseTask;
367
TaskConstructorCore(null, state, default(CancellationToken), creationOptions,
InternalTaskOptions
.PromiseTask, null);
377
: this(action, null, null, default(CancellationToken), TaskCreationOptions.None,
InternalTaskOptions
.None, null)
395
: this(action, null, null, cancellationToken, TaskCreationOptions.None,
InternalTaskOptions
.None, null)
418
: this(action, null, Task.InternalCurrentIfAttached(creationOptions), default(CancellationToken), creationOptions,
InternalTaskOptions
.None, null)
445
: this(action, null, Task.InternalCurrentIfAttached(creationOptions), cancellationToken, creationOptions,
InternalTaskOptions
.None, null)
462
: this(action, state, null, default(CancellationToken), TaskCreationOptions.None,
InternalTaskOptions
.None, null)
482
: this(action, state, null, cancellationToken, TaskCreationOptions.None,
InternalTaskOptions
.None, null)
506
: this(action, state, Task.InternalCurrentIfAttached(creationOptions), default(CancellationToken), creationOptions,
InternalTaskOptions
.None, null)
534
: this(action, state, Task.InternalCurrentIfAttached(creationOptions), cancellationToken, creationOptions,
InternalTaskOptions
.None, null)
541
TaskCreationOptions creationOptions,
InternalTaskOptions
internalOptions, TaskScheduler scheduler, ref StackCrawlMark stackMark)
559
TaskCreationOptions creationOptions,
InternalTaskOptions
internalOptions, TaskScheduler scheduler)
570
((internalOptions &
InternalTaskOptions
.SelfReplicating) != 0)
591
TaskCreationOptions creationOptions,
InternalTaskOptions
internalOptions, TaskScheduler scheduler)
624
((internalOptions &
InternalTaskOptions
.SelfReplicating) != 0))
633
if ((m_action == null) || ((internalOptions &
InternalTaskOptions
.ContinuationTask) != 0))
659
(
InternalTaskOptions
.ChildReplica |
InternalTaskOptions
.SelfReplicating |
InternalTaskOptions
.ContinuationTask)) == 0,
688
if ((((
InternalTaskOptions
)Options &
689
(
InternalTaskOptions
.QueuedByRuntime |
InternalTaskOptions
.PromiseTask |
InternalTaskOptions
.LazyCancellation)) == 0))
853
Contract.Assert((Options & (TaskCreationOptions)
InternalTaskOptions
.PromiseTask) != 0,
1089
if ((options & (TaskCreationOptions)
InternalTaskOptions
.PromiseTask) != 0)
1093
if ((options & (TaskCreationOptions)
InternalTaskOptions
.ContinuationTask) != 0)
1183
if ((options & (TaskCreationOptions)
InternalTaskOptions
.ContinuationTask) != 0)
1189
if ((options & (TaskCreationOptions)
InternalTaskOptions
.PromiseTask) != 0)
1279
TaskCreationOptions options,
InternalTaskOptions
internalOptions, ref StackCrawlMark stackMark)
1290
Task t = new Task(action, state, creatingTask, cancellationToken, options, internalOptions |
InternalTaskOptions
.QueuedByRuntime, scheduler);
1576
get { return Options & (TaskCreationOptions)(~
InternalTaskOptions
.InternalOptionsMask); }
1656
s_completedTask = completedTask = new Task(false, (TaskCreationOptions)
InternalTaskOptions
.DoNotDispose, default(CancellationToken)); // benign initialization ----
1699
return (Options & (TaskCreationOptions)(
InternalTaskOptions
.SelfReplicating |
InternalTaskOptions
.ChildReplica))
1700
== (TaskCreationOptions)
InternalTaskOptions
.SelfReplicating;
1709
get { return (Options & (TaskCreationOptions)
InternalTaskOptions
.ChildReplica) != 0; }
1854
if ((Options & (TaskCreationOptions)
InternalTaskOptions
.DoNotDispose) != 0)
1936
if (AsyncCausalityTracer.LoggingOn && (Options & (TaskCreationOptions)
InternalTaskOptions
.ContinuationTask) == 0)
1966
if ((Options & (TaskCreationOptions)
InternalTaskOptions
.ContinuationTask) == 0)
2533
TaskCreationOptions creationOptionsForReplica,
InternalTaskOptions
internalOptionsForReplica)
2567
InternalTaskOptions
internalOptionsForReplicas =
2568
InternalTaskOptions
.ChildReplica | // child replica flag disables self replication for the replicas themselves.
2569
InternalTaskOptions
.SelfReplicating | // we still want to identify this as part of a self replicating group
2570
InternalTaskOptions
.QueuedByRuntime; // we queue and cancel these tasks internally, so don't allow CT registration to take place
2732
if (bPreventDoubleExecution || ((Options & (TaskCreationOptions)
InternalTaskOptions
.SelfReplicating) != 0))
3393
Contract.Requires((Options & (TaskCreationOptions)
InternalTaskOptions
.PromiseTask) == 0, "Task.InternalCancel() did not expect promise-style task");
3421
bool bRequiresAtomicStartTransition = (ts != null && ts.RequiresAtomicStartTransition) || ((Options & (TaskCreationOptions)
InternalTaskOptions
.SelfReplicating) != 0);
3500
Contract.Assert((Options & (TaskCreationOptions)
InternalTaskOptions
.PromiseTask) != 0, "Task.RecordInternalCancellationRequest(CancellationToken) only valid for promise-style task");
3913
InternalTaskOptions
internalOptions;
4115
InternalTaskOptions
internalOptions;
4330
InternalTaskOptions
internalOptions;
4549
InternalTaskOptions
internalOptions;
4576
out
InternalTaskOptions
internalOptions)
4617
internalOptions =
InternalTaskOptions
.ContinuationTask;
4621
internalOptions |=
InternalTaskOptions
.LazyCancellation;
4688
if ((this.Options & (TaskCreationOptions)
InternalTaskOptions
.PromiseTask) != 0 &&
5618
TaskCreationOptions.DenyChildAttach,
InternalTaskOptions
.None, ref stackMark);
5638
TaskCreationOptions.DenyChildAttach,
InternalTaskOptions
.None, ref stackMark);
5654
TaskCreationOptions.DenyChildAttach,
InternalTaskOptions
.None, TaskScheduler.Default, ref stackMark);
5674
TaskCreationOptions.DenyChildAttach,
InternalTaskOptions
.None, TaskScheduler.Default, ref stackMark);
6736
ParallelOptions parallelOptions, Action action, TaskCreationOptions creationOptions,
InternalTaskOptions
internalOptions)
6737
: base(action, null, Task.InternalCurrent, default(CancellationToken), creationOptions, internalOptions |
InternalTaskOptions
.SelfReplicating, null)
6766
TaskCreationOptions creationOptionsForReplica,
InternalTaskOptions
internalOptionsForReplica)
6787
TaskCreationOptions creationOptionsForReplica,
InternalTaskOptions
internalOptionsForReplica) :
system\threading\Tasks\TaskContinuation.cs (5)
34
Task antecedent, Delegate action, object state, TaskCreationOptions creationOptions,
InternalTaskOptions
internalOptions, ref StackCrawlMark stackMark) :
82
Task antecedent, Delegate function, object state, TaskCreationOptions creationOptions,
InternalTaskOptions
internalOptions, ref StackCrawlMark stackMark) :
130
Task<TAntecedentResult> antecedent, Delegate action, object state, TaskCreationOptions creationOptions,
InternalTaskOptions
internalOptions, ref StackCrawlMark stackMark) :
178
Task<TAntecedentResult> antecedent, Delegate function, object state, TaskCreationOptions creationOptions,
InternalTaskOptions
internalOptions, ref StackCrawlMark stackMark) :
595
TaskCreationOptions.None,
InternalTaskOptions
.QueuedByRuntime, scheduler)
system\threading\Tasks\TaskFactory.cs (17)
305
m_defaultCreationOptions,
InternalTaskOptions
.None, ref stackMark);
332
m_defaultCreationOptions,
InternalTaskOptions
.None, ref stackMark);
362
InternalTaskOptions
.None, ref stackMark);
403
InternalTaskOptions
.None, ref stackMark);
408
internal Task StartNew(Action action, CancellationToken cancellationToken, TaskCreationOptions creationOptions,
InternalTaskOptions
internalOptions, TaskScheduler scheduler)
439
m_defaultCreationOptions,
InternalTaskOptions
.None, ref stackMark);
470
m_defaultCreationOptions,
InternalTaskOptions
.None, ref stackMark);
502
creationOptions,
InternalTaskOptions
.None, ref stackMark);
546
creationOptions,
InternalTaskOptions
.None, ref stackMark);
574
m_defaultCreationOptions,
InternalTaskOptions
.None, GetDefaultScheduler(currTask), ref stackMark);
607
m_defaultCreationOptions,
InternalTaskOptions
.None, GetDefaultScheduler(currTask), ref stackMark);
641
creationOptions,
InternalTaskOptions
.None, GetDefaultScheduler(currTask), ref stackMark);
686
creationOptions,
InternalTaskOptions
.None, scheduler, ref stackMark);
716
m_defaultCreationOptions,
InternalTaskOptions
.None, GetDefaultScheduler(currTask), ref stackMark);
751
m_defaultCreationOptions,
InternalTaskOptions
.None, GetDefaultScheduler(currTask), ref stackMark);
787
creationOptions,
InternalTaskOptions
.None, GetDefaultScheduler(currTask), ref stackMark);
835
creationOptions,
InternalTaskOptions
.None, scheduler, ref stackMark);