251 references to TaskCreationOptions
mscorlib (248)
system\io\filestream.cs (1)
2864
TaskCreationOptions
.DenyChildAttach,
system\io\stream.cs (3)
286
cancellationToken,
TaskCreationOptions
.DenyChildAttach, TaskScheduler.Default);
634
base(function, state, CancellationToken.None,
TaskCreationOptions
.DenyChildAttach)
950
s_nullReadTask = nullReadTask = new Task<int>(false, 0, (
TaskCreationOptions
)InternalTaskOptions.DoNotDispose, CancellationToken.None); // benign ----
system\io\textreader.cs (2)
200
return Task<String>.Factory.StartNew(_ReadLineDelegate, this, CancellationToken.None,
TaskCreationOptions
.DenyChildAttach, TaskScheduler.Default);
240
return Task<int>.Factory.StartNew(_ReadDelegate, tuple, CancellationToken.None,
TaskCreationOptions
.DenyChildAttach, TaskScheduler.Default);
system\io\textwriter.cs (7)
544
return Task.Factory.StartNew(_WriteCharDelegate, tuple, CancellationToken.None,
TaskCreationOptions
.DenyChildAttach, TaskScheduler.Default);
552
return Task.Factory.StartNew(_WriteStringDelegate, tuple, CancellationToken.None,
TaskCreationOptions
.DenyChildAttach, TaskScheduler.Default);
568
return Task.Factory.StartNew(_WriteCharArrayRangeDelegate, tuple, CancellationToken.None,
TaskCreationOptions
.DenyChildAttach, TaskScheduler.Default);
576
return Task.Factory.StartNew(_WriteLineCharDelegate, tuple, CancellationToken.None,
TaskCreationOptions
.DenyChildAttach, TaskScheduler.Default);
584
return Task.Factory.StartNew(_WriteLineStringDelegate, tuple, CancellationToken.None,
TaskCreationOptions
.DenyChildAttach, TaskScheduler.Default);
600
return Task.Factory.StartNew(_WriteLineCharArrayRangeDelegate, tuple, CancellationToken.None,
TaskCreationOptions
.DenyChildAttach, TaskScheduler.Default);
614
return Task.Factory.StartNew(_FlushDelegate, this, CancellationToken.None,
TaskCreationOptions
.DenyChildAttach, TaskScheduler.Default);
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\runtime\compilerservices\YieldAwaitable.cs (1)
123
Task.Factory.StartNew(continuation, default(CancellationToken),
TaskCreationOptions
.PreferFairness, scheduler);
system\threading\SemaphoreSlim.cs (1)
81
new Task<bool>(false, true, (
TaskCreationOptions
)InternalTaskOptions.DoNotDispose, default(CancellationToken));
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (4)
769
internal static
TaskCreationOptions
GetCreationOptionsForTask(bool isReplacementReplica = false)
771
TaskCreationOptions
options =
775
TaskCreationOptions
.DenyChildAttach;
777
if (isReplacementReplica) options |=
TaskCreationOptions
.PreferFairness;
system\threading\Tasks\Future.cs (26)
96
internal Task(object state,
TaskCreationOptions
options) :
104
base(false,
TaskCreationOptions
.None, default(CancellationToken))
109
internal Task(bool canceled, TResult result,
TaskCreationOptions
creationOptions, CancellationToken ct)
138
TaskCreationOptions
.None, InternalTaskOptions.None, null)
162
TaskCreationOptions
.None, InternalTaskOptions.None, null)
176
/// The <see cref="System.Threading.Tasks.
TaskCreationOptions
">TaskCreationOptions</see> used to
187
public Task(Func<TResult> function,
TaskCreationOptions
creationOptions)
203
/// The <see cref="System.Threading.Tasks.
TaskCreationOptions
">TaskCreationOptions</see> used to
217
public Task(Func<TResult> function, CancellationToken cancellationToken,
TaskCreationOptions
creationOptions)
238
TaskCreationOptions
.None, InternalTaskOptions.None, null)
262
TaskCreationOptions
.None, InternalTaskOptions.None, null)
277
/// The <see cref="System.Threading.Tasks.
TaskCreationOptions
">TaskCreationOptions</see> used to
288
public Task(Func<object, TResult> function, object state,
TaskCreationOptions
creationOptions)
307
/// The <see cref="System.Threading.Tasks.
TaskCreationOptions
">TaskCreationOptions</see> used to
321
public Task(Func<object, TResult> function, object state, CancellationToken cancellationToken,
TaskCreationOptions
creationOptions)
331
TaskCreationOptions
creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler,
351
TaskCreationOptions
creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler) :
362
TaskCreationOptions
creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler, ref StackCrawlMark stackMark) :
381
TaskCreationOptions
creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler) :
393
TaskCreationOptions
creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler, ref StackCrawlMark stackMark)
418
TaskCreationOptions
creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler, ref StackCrawlMark stackMark)
894
TaskCreationOptions
creationOptions;
1098
TaskCreationOptions
creationOptions;
1325
TaskCreationOptions
creationOptions;
1559
TaskCreationOptions
creationOptions;
1663
public
TaskCreationOptions
CreationOptions { get { return m_task.CreationOptions; } }
system\threading\Tasks\FutureFactory.cs (37)
54
private
TaskCreationOptions
m_defaultCreationOptions;
71
&& ((currTask.CreationOptions &
TaskCreationOptions
.HideScheduler) == 0)
84
/// <see cref="
TaskCreationOptions
"/> property is initialized to
85
/// <see cref="System.Threading.Tasks.
TaskCreationOptions
.None">TaskCreationOptions.None</see>, the
93
: this(default(CancellationToken),
TaskCreationOptions
.None, TaskContinuationOptions.None, null)
105
/// <see cref="
TaskCreationOptions
"/> property is initialized to
106
/// <see cref="System.Threading.Tasks.
TaskCreationOptions
.None">TaskCreationOptions.None</see>, the
114
: this(cancellationToken,
TaskCreationOptions
.None, TaskContinuationOptions.None, null)
128
/// <see cref="
TaskCreationOptions
"/> property is initialized to
129
/// <see cref="System.Threading.Tasks.
TaskCreationOptions
.None">TaskCreationOptions.None</see>, the
138
: this(default(CancellationToken),
TaskCreationOptions
.None, TaskContinuationOptions.None, scheduler)
146
/// The default <see cref="System.Threading.Tasks.
TaskCreationOptions
">
160
/// <see cref="
TaskCreationOptions
"/> property is initialized to <paramref name="creationOptions"/>,
168
public TaskFactory(
TaskCreationOptions
creationOptions, TaskContinuationOptions continuationOptions)
180
/// The default <see cref="System.Threading.Tasks.
TaskCreationOptions
">
199
/// <see cref="
TaskCreationOptions
"/> property is initialized to <paramref name="creationOptions"/>,
208
public TaskFactory(CancellationToken cancellationToken,
TaskCreationOptions
creationOptions, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
245
/// Gets the <see cref="System.Threading.Tasks.
TaskCreationOptions
">TaskCreationOptions
252
public
TaskCreationOptions
CreationOptions { get { return m_defaultCreationOptions; } }
255
/// Gets the <see cref="System.Threading.Tasks.
TaskCreationOptions
">TaskContinuationOptions
344
public Task<TResult> StartNew(Func<TResult> function,
TaskCreationOptions
creationOptions)
386
public Task<TResult> StartNew(Func<TResult> function, CancellationToken cancellationToken,
TaskCreationOptions
creationOptions, TaskScheduler scheduler)
477
public Task<TResult> StartNew(Func<Object, TResult> function, Object state,
TaskCreationOptions
creationOptions)
521
public Task<TResult> StartNew(Func<Object, TResult> function, Object state, CancellationToken cancellationToken,
TaskCreationOptions
creationOptions, TaskScheduler scheduler)
640
TaskCreationOptions
creationOptions)
675
TaskCreationOptions
creationOptions,
689
TaskCreationOptions
creationOptions,
725
default(CancellationToken),
TaskCreationOptions
.None, InternalTaskOptions.None, null, ref stackMark);
805
Func<IAsyncResult, TResult> endMethod, object state,
TaskCreationOptions
creationOptions)
814
object state,
TaskCreationOptions
creationOptions)
942
TArg1 arg1, object state,
TaskCreationOptions
creationOptions)
951
TArg1 arg1, object state,
TaskCreationOptions
creationOptions)
1087
TArg1 arg1, TArg2 arg2, object state,
TaskCreationOptions
creationOptions)
1096
TArg1 arg1, TArg2 arg2, object state,
TaskCreationOptions
creationOptions)
1239
TArg1 arg1, TArg2 arg2, TArg3 arg3, object state,
TaskCreationOptions
creationOptions)
1248
TArg1 arg1, TArg2 arg2, TArg3 arg3, object state,
TaskCreationOptions
creationOptions)
1468
TaskCreationOptions
tco;
system\threading\Tasks\Parallel.cs (7)
315
},
TaskCreationOptions
.None, InternalTaskOptions.SelfReplicating);
364
tasks[i] = Task.Factory.StartNew(actionsCopy[i], parallelOptions.CancellationToken,
TaskCreationOptions
.None,
1062
TaskCreationOptions
creationOptions =
TaskCreationOptions
.None;
1377
TaskCreationOptions
creationOptions =
TaskCreationOptions
.None;
3464
rootTask = new ParallelForReplicatingTask(parallelOptions, partitionAction,
TaskCreationOptions
.None,
system\threading\Tasks\Task.cs (88)
316
internal Task(bool canceled,
TaskCreationOptions
creationOptions, CancellationToken ct)
351
internal Task(object state,
TaskCreationOptions
creationOptions, bool promiseStyle)
357
if ((creationOptions & ~(
TaskCreationOptions
.AttachedToParent |
TaskCreationOptions
.RunContinuationsAsynchronously)) != 0)
364
if ((creationOptions &
TaskCreationOptions
.AttachedToParent) != 0)
377
: this(action, null, null, default(CancellationToken),
TaskCreationOptions
.None, InternalTaskOptions.None, null)
395
: this(action, null, null, cancellationToken,
TaskCreationOptions
.None, InternalTaskOptions.None, null)
406
/// The <see cref="System.Threading.Tasks.
TaskCreationOptions
">TaskCreationOptions</see> used to
417
public Task(Action action,
TaskCreationOptions
creationOptions)
430
/// The <see cref="System.Threading.Tasks.
TaskCreationOptions
">TaskCreationOptions</see> used to
444
public Task(Action action, CancellationToken cancellationToken,
TaskCreationOptions
creationOptions)
462
: this(action, state, null, default(CancellationToken),
TaskCreationOptions
.None, InternalTaskOptions.None, null)
482
: this(action, state, null, cancellationToken,
TaskCreationOptions
.None, InternalTaskOptions.None, null)
494
/// The <see cref="System.Threading.Tasks.
TaskCreationOptions
">TaskCreationOptions</see> used to
505
public Task(Action<object> action, object state,
TaskCreationOptions
creationOptions)
519
/// The <see cref="System.Threading.Tasks.
TaskCreationOptions
">TaskCreationOptions</see> used to
533
public Task(Action<object> action, object state, CancellationToken cancellationToken,
TaskCreationOptions
creationOptions)
541
TaskCreationOptions
creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler, ref StackCrawlMark stackMark)
559
TaskCreationOptions
creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler)
569
if (((creationOptions &
TaskCreationOptions
.AttachedToParent) != 0) ||
591
TaskCreationOptions
creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler)
599
~(
TaskCreationOptions
.AttachedToParent |
600
TaskCreationOptions
.LongRunning |
601
TaskCreationOptions
.DenyChildAttach |
602
TaskCreationOptions
.HideScheduler |
603
TaskCreationOptions
.PreferFairness |
604
TaskCreationOptions
.RunContinuationsAsynchronously)) != 0)
623
if (((creationOptions &
TaskCreationOptions
.LongRunning) != 0) &&
647
&& ((creationOptions &
TaskCreationOptions
.AttachedToParent) != 0)
648
&& ((m_parent.CreationOptions &
TaskCreationOptions
.DenyChildAttach) == 0)
723
((Options &
TaskCreationOptions
.AttachedToParent) != 0)
724
&& ((m_parent.Options &
TaskCreationOptions
.DenyChildAttach) == 0))
790
internal
TaskCreationOptions
Options
801
internal static
TaskCreationOptions
OptionsMethod(int flags)
804
return (
TaskCreationOptions
)(flags & OptionsMask);
853
Contract.Assert((Options & (
TaskCreationOptions
)InternalTaskOptions.PromiseTask) != 0,
1088
var
options = OptionsMethod(flags);
1089
if ((options & (
TaskCreationOptions
)InternalTaskOptions.PromiseTask) != 0)
1093
if ((options & (
TaskCreationOptions
)InternalTaskOptions.ContinuationTask) != 0)
1182
var
options = OptionsMethod(flags);
1183
if ((options & (
TaskCreationOptions
)InternalTaskOptions.ContinuationTask) != 0)
1189
if ((options & (
TaskCreationOptions
)InternalTaskOptions.PromiseTask) != 0)
1279
TaskCreationOptions
options, InternalTaskOptions internalOptions, ref StackCrawlMark stackMark)
1369
internal static Task InternalCurrentIfAttached(
TaskCreationOptions
creationOptions)
1371
return (creationOptions &
TaskCreationOptions
.AttachedToParent) != 0 ? InternalCurrent : null;
1574
public
TaskCreationOptions
CreationOptions
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)
2171
&& ((Options &
TaskCreationOptions
.AttachedToParent) != 0)
2172
&& ((m_parent.CreationOptions &
TaskCreationOptions
.DenyChildAttach) == 0)
2355
&& ((m_parent.CreationOptions &
TaskCreationOptions
.DenyChildAttach) == 0)
2356
&& (((
TaskCreationOptions
)(m_stateFlags & OptionsMask)) &
TaskCreationOptions
.AttachedToParent) != 0)
2533
TaskCreationOptions
creationOptionsForReplica, InternalTaskOptions internalOptionsForReplica)
2566
TaskCreationOptions
creationOptionsForReplicas = root.CreationOptions |
TaskCreationOptions
.AttachedToParent;
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");
3610
((m_stateFlags & (int)
TaskCreationOptions
.RunContinuationsAsynchronously) != 0));
3912
TaskCreationOptions
creationOptions;
4114
TaskCreationOptions
creationOptions;
4329
TaskCreationOptions
creationOptions;
4548
TaskCreationOptions
creationOptions;
4575
out
TaskCreationOptions
creationOptions,
4614
creationOptions = (
TaskCreationOptions
)(continuationOptions & creationOptionsMask);
4688
if ((this.Options & (
TaskCreationOptions
)InternalTaskOptions.PromiseTask) != 0 &&
5554
return new Task(true,
TaskCreationOptions
.None, cancellationToken);
5574
return new Task<TResult>(true, default(TResult),
TaskCreationOptions
.None, cancellationToken);
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);
5721
Task<Task> task1 = Task<Task>.Factory.StartNew(function, cancellationToken,
TaskCreationOptions
.DenyChildAttach, TaskScheduler.Default);
5772
Task<Task<TResult>> task1 = Task<Task<TResult>>.Factory.StartNew(function, cancellationToken,
TaskCreationOptions
.DenyChildAttach, TaskScheduler.Default);
6324
new Task<TResult[]>(false, new TResult[0],
TaskCreationOptions
.None, default(CancellationToken)) :
6715
public
TaskCreationOptions
CreationOptions { get { return m_task.CreationOptions; } }
6736
ParallelOptions parallelOptions, Action action,
TaskCreationOptions
creationOptions, InternalTaskOptions internalOptions)
6766
TaskCreationOptions
creationOptionsForReplica, InternalTaskOptions internalOptionsForReplica)
6787
TaskCreationOptions
creationOptionsForReplica, InternalTaskOptions internalOptionsForReplica) :
7150
: base((object)null, outerTask.CreationOptions &
TaskCreationOptions
.AttachedToParent)
system\threading\Tasks\TaskCompletionSource.cs (3)
81
public TaskCompletionSource(
TaskCreationOptions
creationOptions)
93
: this(state,
TaskCreationOptions
.None)
109
public TaskCompletionSource(object state,
TaskCreationOptions
creationOptions)
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 (57)
49
private
TaskCreationOptions
m_defaultCreationOptions;
67
&& ((currTask.CreationOptions &
TaskCreationOptions
.HideScheduler) == 0)
84
/// <see cref="
TaskCreationOptions
"/> property is initialized to
85
/// <see cref="System.Threading.Tasks.
TaskCreationOptions
.None">TaskCreationOptions.None</see>, the
93
: this(default(CancellationToken),
TaskCreationOptions
.None, TaskContinuationOptions.None, null)
105
/// <see cref="
TaskCreationOptions
"/> property is initialized to
106
/// <see cref="System.Threading.Tasks.
TaskCreationOptions
.None">TaskCreationOptions.None</see>, the
114
: this(cancellationToken,
TaskCreationOptions
.None, TaskContinuationOptions.None, null)
128
/// <see cref="
TaskCreationOptions
"/> property is initialized to
129
/// <see cref="System.Threading.Tasks.
TaskCreationOptions
.None">TaskCreationOptions.None</see>, the
138
: this(default(CancellationToken),
TaskCreationOptions
.None, TaskContinuationOptions.None, scheduler)
146
/// The default <see cref="System.Threading.Tasks.
TaskCreationOptions
">
160
/// <see cref="
TaskCreationOptions
"/> property is initialized to <paramref name="creationOptions"/>,
168
public TaskFactory(
TaskCreationOptions
creationOptions, TaskContinuationOptions continuationOptions)
180
/// The default <see cref="System.Threading.Tasks.
TaskCreationOptions
">
199
/// <see cref="
TaskCreationOptions
"/> property is initialized to <paramref name="creationOptions"/>,
208
public TaskFactory(CancellationToken cancellationToken,
TaskCreationOptions
creationOptions, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
220
internal static void CheckCreationOptions(
TaskCreationOptions
creationOptions)
224
~(
TaskCreationOptions
.AttachedToParent |
225
TaskCreationOptions
.DenyChildAttach |
226
TaskCreationOptions
.HideScheduler |
227
TaskCreationOptions
.LongRunning |
228
TaskCreationOptions
.PreferFairness |
229
TaskCreationOptions
.RunContinuationsAsynchronously)) != 0)
262
/// Gets the <see cref="System.Threading.Tasks.
TaskCreationOptions
">TaskCreationOptions
269
public
TaskCreationOptions
CreationOptions { get { return m_defaultCreationOptions; } }
272
/// Gets the <see cref="System.Threading.Tasks.
TaskCreationOptions
">TaskContinuationOptions
357
public Task StartNew(Action action,
TaskCreationOptions
creationOptions)
398
public Task StartNew(Action action, CancellationToken cancellationToken,
TaskCreationOptions
creationOptions, TaskScheduler scheduler)
408
internal Task StartNew(Action action, CancellationToken cancellationToken,
TaskCreationOptions
creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler)
497
public Task StartNew(Action<Object> action, Object state,
TaskCreationOptions
creationOptions)
541
TaskCreationOptions
creationOptions, TaskScheduler scheduler)
636
public Task<TResult> StartNew<TResult>(Func<TResult> function,
TaskCreationOptions
creationOptions)
681
public Task<TResult> StartNew<TResult>(Func<TResult> function, CancellationToken cancellationToken,
TaskCreationOptions
creationOptions, TaskScheduler scheduler)
782
public Task<TResult> StartNew<TResult>(Func<Object, TResult> function, Object state,
TaskCreationOptions
creationOptions)
830
TaskCreationOptions
creationOptions, TaskScheduler scheduler)
888
TaskCreationOptions
creationOptions)
921
TaskCreationOptions
creationOptions,
932
TaskCreationOptions
creationOptions,
988
Action<IAsyncResult> endMethod, object state,
TaskCreationOptions
creationOptions)
1054
TArg1 arg1, object state,
TaskCreationOptions
creationOptions)
1127
TArg1 arg1, TArg2 arg2, object state,
TaskCreationOptions
creationOptions)
1208
TArg1 arg1, TArg2 arg2, TArg3 arg3, object state,
TaskCreationOptions
creationOptions)
1266
IAsyncResult asyncResult, Func<IAsyncResult, TResult> endMethod,
TaskCreationOptions
creationOptions)
1300
IAsyncResult asyncResult, Func<IAsyncResult, TResult> endMethod,
TaskCreationOptions
creationOptions, TaskScheduler scheduler)
1360
Func<IAsyncResult, TResult> endMethod, object state,
TaskCreationOptions
creationOptions)
1426
Func<IAsyncResult, TResult> endMethod, TArg1 arg1, object state,
TaskCreationOptions
creationOptions)
1500
Func<IAsyncResult, TResult> endMethod, TArg1 arg1, TArg2 arg2, object state,
TaskCreationOptions
creationOptions)
1583
Func<IAsyncResult, TResult> endMethod, TArg1 arg1, TArg2 arg2, TArg3 arg3, object state,
TaskCreationOptions
creationOptions)
1593
internal static void CheckFromAsyncOptions(
TaskCreationOptions
creationOptions, bool hasBeginMethod)
1598
if ((creationOptions &
TaskCreationOptions
.LongRunning) != 0)
1600
if ((creationOptions &
TaskCreationOptions
.PreferFairness) != 0)
1606
~(
TaskCreationOptions
.AttachedToParent |
1607
TaskCreationOptions
.DenyChildAttach |
1608
TaskCreationOptions
.HideScheduler |
1609
TaskCreationOptions
.PreferFairness |
1610
TaskCreationOptions
.LongRunning)) != 0)
system\threading\Tasks\TaskScheduler.cs (1)
370
&& ((currentTask.CreationOptions &
TaskCreationOptions
.HideScheduler) == 0)
system\threading\Tasks\ThreadPoolTaskScheduler.cs (2)
58
if ((task.Options &
TaskCreationOptions
.LongRunning) != 0)
68
bool forceToGlobalQueue = ((task.Options &
TaskCreationOptions
.PreferFairness) != 0);
System.Core (3)
System\Linq\Parallel\Scheduling\QueryTask.cs (3)
68
Task task = new Task(s_runTaskSynchronouslyDelegate, this,
TaskCreationOptions
.AttachedToParent);
87
return Task.Factory.StartNew(s_baseWorkDelegate, this, new CancellationToken(),
TaskCreationOptions
.AttachedToParent |
TaskCreationOptions
.PreferFairness, taskScheduler);