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