43 references to InternalCurrent
mscorlib (43)
system\io\stream.cs (2)
343
var thisTask = Task.
InternalCurrent
as ReadWriteTask;
489
var thisTask = Task.
InternalCurrent
as ReadWriteTask;
system\runtime\compilerservices\TaskAwaiter.cs (2)
246
var currentTaskAtBegin = Task.
InternalCurrent
;
274
var currentTaskAtEnd = Task.
InternalCurrent
;
system\runtime\compilerservices\YieldAwaitable.cs (1)
131
Task currentTask = Task.
InternalCurrent
;
system\threading\Tasks\FutureFactory.cs (6)
287
Task currTask = Task.
InternalCurrent
;
316
Task currTask = Task.
InternalCurrent
;
347
Task currTask = Task.
InternalCurrent
;
416
Task currTask = Task.
InternalCurrent
;
447
Task currTask = Task.
InternalCurrent
;
480
Task currTask = Task.
InternalCurrent
;
system\threading\Tasks\Parallel.cs (7)
254
callerTask = Task.
InternalCurrent
;
1100
callingTask = Task.
InternalCurrent
;
1126
Task currentWorkerTask = Task.
InternalCurrent
;
1415
callerTask = Task.
InternalCurrent
;
1440
Task currentWorkerTask = Task.
InternalCurrent
;
3229
callerTask = Task.
InternalCurrent
;
3286
Task currentWorkerTask = Task.
InternalCurrent
;
system\threading\Tasks\Task.cs (12)
365
m_parent = Task.
InternalCurrent
;
982
Task currentTask = Task.
InternalCurrent
;
1003
Contract.Assert(Task.
InternalCurrent
== this || this.IsSelfReplicatingRoot, "Task.AddNewChild(): Called from an external context");
1026
Contract.Assert(Task.
InternalCurrent
== this, "Task.DisregardChild(): Called from an external context");
1346
Task currentTask =
InternalCurrent
;
1371
return (creationOptions & TaskCreationOptions.AttachedToParent) != 0 ?
InternalCurrent
: null;
2173
&& Task.
InternalCurrent
== m_parent)
2584
Task currentTask = Task.
InternalCurrent
;
3231
Task currentTask = Task.
InternalCurrent
;
3268
Task currentTask = Task.
InternalCurrent
;
3575
Contract.Assert(this == Task.
InternalCurrent
, "SetCancellationAcknowledged() should only be called while this is still the current task");
6737
: base(action, null, Task.
InternalCurrent
, default(CancellationToken), creationOptions, internalOptions | InternalTaskOptions.SelfReplicating, null)
system\threading\Tasks\TaskFactory.cs (12)
303
Task currTask = Task.
InternalCurrent
;
330
Task currTask = Task.
InternalCurrent
;
360
Task currTask = Task.
InternalCurrent
;
437
Task currTask = Task.
InternalCurrent
;
468
Task currTask = Task.
InternalCurrent
;
500
Task currTask = Task.
InternalCurrent
;
572
Task currTask = Task.
InternalCurrent
;
605
Task currTask = Task.
InternalCurrent
;
639
Task currTask = Task.
InternalCurrent
;
714
Task currTask = Task.
InternalCurrent
;
749
Task currTask = Task.
InternalCurrent
;
785
Task currTask = Task.
InternalCurrent
;
system\threading\Tasks\TaskScheduler.cs (1)
368
Task currentTask = Task.
InternalCurrent
;