7[DebuggerDisplay(
"Id={Id}")]
127 task.FireTaskScheduledIfNeeded(
this);
130 if (flag && !
task.IsDelegateInvoked && !
task.IsCanceled)
150 task.FireTaskScheduledIfNeeded(
this);
181 if (
task.ExecutingTaskScheduler !=
this)
185 return task.ExecuteEntry();
void Add(TKey key, TValue value)
static bool TryEnsureSufficientExecutionStack()
static string TaskScheduler_ExecuteTask_WrongTaskScheduler
static string TaskScheduler_InconsistentStateAfterTryExecuteTaskInline
static int CompareExchange(ref int location1, int value, int comparand)
static int Increment(ref int location)
SystemThreadingTasks_TaskSchedulerDebugView(TaskScheduler scheduler)
IEnumerable< Task > ScheduledTasks
readonly TaskScheduler m_taskScheduler
volatile int m_taskSchedulerId
virtual bool TryDequeue(Task task)
static TaskScheduler FromCurrentSynchronizationContext()
static TaskScheduler[] GetTaskSchedulersForDebugger()
static TaskScheduler Current
static void PublishUnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs ueea)
void InternalQueueTask(Task task)
void AddToActiveTaskSchedulers()
static ConditionalWeakTable< TaskScheduler, object > s_activeTaskSchedulers
static ? EventHandler< UnobservedTaskExceptionEventArgs > UnobservedTaskException
virtual void NotifyWorkItemProgress()
static TaskScheduler Default
bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued)
TaskSchedulerAwaiter GetAwaiter()
void QueueTask(Task task)
static readonly TaskScheduler s_defaultTaskScheduler
Task[] GetScheduledTasksForDebugger()
virtual int MaximumConcurrencyLevel
static int s_taskSchedulerIdCounter
static ? TaskScheduler InternalCurrent
IEnumerable< Task >? GetScheduledTasks()
bool TryRunInline(Task task, bool taskWasPreviouslyQueued)
bool TryExecuteTask(Task task)
static new TaskFactory< TResult > Factory
static ? Task InternalCurrent
static readonly TplEventSource Log
static bool UnsafeQueueUserWorkItem(WaitCallback callBack, object? state)
static CancellationToken None
TaskSchedulerAwaiter(TaskScheduler scheduler)
void UnsafeOnCompleted(Action continuation)
readonly TaskScheduler _scheduler
void OnCompleted(Action continuation)