61 references to Current
mscorlib (61)
system\runtime\compilerservices\YieldAwaitable.cs (2)
108
TaskScheduler scheduler = TaskScheduler.
Current
;
133
TplEtwProvider.Log.AwaitTaskContinuationScheduled(TaskScheduler.
Current
.Id, (currentTask != null) ? currentTask.Id : 0, continuationId);
system\threading\Tasks\Future.cs (12)
738
return ContinueWith(continuationAction, TaskScheduler.
Current
, default(CancellationToken), TaskContinuationOptions.None, ref stackMark);
766
return ContinueWith(continuationAction, TaskScheduler.
Current
, cancellationToken, TaskContinuationOptions.None, ref stackMark);
831
return ContinueWith(continuationAction, TaskScheduler.
Current
, default(CancellationToken), continuationOptions, ref stackMark);
938
return ContinueWith(continuationAction, state, TaskScheduler.
Current
, default(CancellationToken), TaskContinuationOptions.None, ref stackMark);
967
return ContinueWith(continuationAction, state, TaskScheduler.
Current
, cancellationToken, TaskContinuationOptions.None, ref stackMark);
1034
return ContinueWith(continuationAction, state, TaskScheduler.
Current
, default(CancellationToken), continuationOptions, ref stackMark);
1145
return ContinueWith<TNewResult>(continuationFunction, TaskScheduler.
Current
, default(CancellationToken), TaskContinuationOptions.None, ref stackMark);
1176
return ContinueWith<TNewResult>(continuationFunction, TaskScheduler.
Current
, cancellationToken, TaskContinuationOptions.None, ref stackMark);
1252
return ContinueWith<TNewResult>(continuationFunction, TaskScheduler.
Current
, default(CancellationToken), continuationOptions, ref stackMark);
1372
return ContinueWith<TNewResult>(continuationFunction, state, TaskScheduler.
Current
, default(CancellationToken), TaskContinuationOptions.None, ref stackMark);
1405
return ContinueWith<TNewResult>(continuationFunction, state, TaskScheduler.
Current
, cancellationToken, TaskContinuationOptions.None, ref stackMark);
1485
return ContinueWith<TNewResult>(continuationFunction, state, TaskScheduler.
Current
, default(CancellationToken), continuationOptions, ref stackMark);
system\threading\Tasks\FutureFactory.cs (7)
61
if (m_defaultScheduler == null) return TaskScheduler.
Current
;
90
/// cref="System.Threading.Tasks.TaskScheduler.
Current
">TaskScheduler.Current</see>).
111
/// cref="System.Threading.Tasks.TaskScheduler.
Current
">TaskScheduler.Current</see>).
135
/// cref="System.Threading.Tasks.TaskScheduler.
Current
">TaskScheduler.Current</see>).
166
/// cref="System.Threading.Tasks.TaskScheduler.
Current
">TaskScheduler.Current</see>).
206
/// cref="System.Threading.Tasks.TaskScheduler.
Current
">TaskScheduler.Current</see>).
239
/// If null, <see cref="System.Threading.Tasks.TaskScheduler.
Current
">TaskScheduler.Current</see>
system\threading\Tasks\Parallel.cs (15)
79
if (m_scheduler == null) return TaskScheduler.
Current
;
255
TplEtwProvider.Log.ParallelInvokeBegin((callerTask != null ? callerTask.m_taskScheduler.Id : TaskScheduler.
Current
.Id), (callerTask != null ? callerTask.Id : 0),
408
TplEtwProvider.Log.ParallelInvokeEnd((callerTask != null ? callerTask.m_taskScheduler.Id : TaskScheduler.
Current
.Id), (callerTask != null ? callerTask.Id : 0),
1101
TplEtwProvider.Log.ParallelLoopBegin((callingTask != null ? callingTask.m_taskScheduler.Id : TaskScheduler.
Current
.Id), (callingTask != null ? callingTask.Id : 0),
1153
TplEtwProvider.Log.ParallelFork((currentWorkerTask != null ? currentWorkerTask.m_taskScheduler.Id : TaskScheduler.
Current
.Id), (currentWorkerTask != null ? currentWorkerTask.Id : 0),
1256
TplEtwProvider.Log.ParallelJoin((currentWorkerTask != null ? currentWorkerTask.m_taskScheduler.Id : TaskScheduler.
Current
.Id), (currentWorkerTask != null ? currentWorkerTask.Id : 0),
1322
TplEtwProvider.Log.ParallelLoopEnd((callingTask != null ? callingTask.m_taskScheduler.Id : TaskScheduler.
Current
.Id), (callingTask != null ? callingTask.Id : 0),
1416
TplEtwProvider.Log.ParallelLoopBegin((callerTask != null ? callerTask.m_taskScheduler.Id : TaskScheduler.
Current
.Id), (callerTask != null ? callerTask.Id : 0),
1466
TplEtwProvider.Log.ParallelFork((currentWorkerTask != null ? currentWorkerTask.m_taskScheduler.Id : TaskScheduler.
Current
.Id), (currentWorkerTask != null ? currentWorkerTask.Id : 0),
1569
TplEtwProvider.Log.ParallelJoin((currentWorkerTask != null ? currentWorkerTask.m_taskScheduler.Id : TaskScheduler.
Current
.Id), (currentWorkerTask != null ? currentWorkerTask.Id : 0),
1635
TplEtwProvider.Log.ParallelLoopEnd((callerTask != null ? callerTask.m_taskScheduler.Id : TaskScheduler.
Current
.Id), (callerTask != null ? callerTask.Id : 0),
3230
TplEtwProvider.Log.ParallelLoopBegin((callerTask != null ? callerTask.m_taskScheduler.Id : TaskScheduler.
Current
.Id), (callerTask != null ? callerTask.Id : 0),
3291
TplEtwProvider.Log.ParallelFork((currentWorkerTask != null ? currentWorkerTask.m_taskScheduler.Id : TaskScheduler.
Current
.Id), (currentWorkerTask != null ? currentWorkerTask.Id : 0),
3454
TplEtwProvider.Log.ParallelJoin((currentWorkerTask != null ? currentWorkerTask.m_taskScheduler.Id : TaskScheduler.
Current
.Id), (currentWorkerTask != null ? currentWorkerTask.Id : 0),
3536
TplEtwProvider.Log.ParallelLoopEnd((callerTask != null ? callerTask.m_taskScheduler.Id : TaskScheduler.
Current
.Id), (callerTask != null ? callerTask.Id : 0),
system\threading\Tasks\Task.cs (17)
1048
Start(TaskScheduler.
Current
);
1133
InternalRunSynchronously(TaskScheduler.
Current
, waitForCompletion: true);
2789
etwLog.TaskStarted(TaskScheduler.
Current
.Id, 0, this.Id);
2843
etwLog.TaskCompleted(TaskScheduler.
Current
.Id, 0, this.Id, IsFaulted);
3755
return ContinueWith(continuationAction, TaskScheduler.
Current
, default(CancellationToken), TaskContinuationOptions.None, ref stackMark);
3782
return ContinueWith(continuationAction, TaskScheduler.
Current
, cancellationToken, TaskContinuationOptions.None, ref stackMark);
3846
return ContinueWith(continuationAction, TaskScheduler.
Current
, default(CancellationToken), continuationOptions, ref stackMark);
3953
return ContinueWith(continuationAction, state, TaskScheduler.
Current
, default(CancellationToken), TaskContinuationOptions.None, ref stackMark);
3981
return ContinueWith(continuationAction, state, TaskScheduler.
Current
, cancellationToken, TaskContinuationOptions.None, ref stackMark);
4047
return ContinueWith(continuationAction, state, TaskScheduler.
Current
, default(CancellationToken), continuationOptions, ref stackMark);
4158
return ContinueWith<TResult>(continuationFunction, TaskScheduler.
Current
, default(CancellationToken),
4190
return ContinueWith<TResult>(continuationFunction, TaskScheduler.
Current
, cancellationToken, TaskContinuationOptions.None, ref stackMark);
4260
return ContinueWith<TResult>(continuationFunction, TaskScheduler.
Current
, default(CancellationToken), continuationOptions, ref stackMark);
4373
return ContinueWith<TResult>(continuationFunction, state, TaskScheduler.
Current
, default(CancellationToken),
4406
return ContinueWith<TResult>(continuationFunction, state, TaskScheduler.
Current
, cancellationToken, TaskContinuationOptions.None, ref stackMark);
4478
return ContinueWith<TResult>(continuationFunction, state, TaskScheduler.
Current
, default(CancellationToken), continuationOptions, ref stackMark);
4694
etwLog.AwaitTaskContinuationScheduled(TaskScheduler.
Current
.Id, Task.CurrentId ?? 0, continuationTask.Id);
system\threading\Tasks\TaskFactory.cs (7)
57
if (m_defaultScheduler == null) return TaskScheduler.
Current
;
90
/// cref="System.Threading.Tasks.TaskScheduler.
Current
">TaskScheduler.Current</see>).
111
/// cref="System.Threading.Tasks.TaskScheduler.
Current
">TaskScheduler.Current</see>).
135
/// cref="System.Threading.Tasks.TaskScheduler.
Current
">TaskScheduler.Current</see>).
166
/// cref="System.Threading.Tasks.TaskScheduler.
Current
">TaskScheduler.Current</see>).
206
/// cref="System.Threading.Tasks.TaskScheduler.
Current
">TaskScheduler.Current</see>).
256
/// If null, <see cref="System.Threading.Tasks.TaskScheduler.
Current
">TaskScheduler.Current</see>
system\threading\Tasks\TaskScheduler.cs (1)
346
/// When not called from within a task, <see cref="
Current
"/> will return the <see cref="Default"/> scheduler.