FiberTaskScheduler.cs
Go to the documentation of this file.
51 {
85 {
134 // 1. Tasks using fiber schedulers have thread affinity and must run on the thread the scheduler was created on.
135 // 2. Fiber tasks cannot run inline here because they may yield which is only handled when queued.
override bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued)
Tries to execute the task inline.
Definition: FiberTaskScheduler.cs:132
Fiber StartNew(IEnumerator coroutine)
Start executing a new fiber using the default scheduler on the thread.
Definition: FiberFactory.StartNew.cs:19
Yieldable task for execution on a fiber.
Definition: YieldableTask.cs:41
void ThrowIfCancellationRequested()
Definition: CancellationToken.cs:86
Definition: AggregateException.cs:31
A Fiber is a lightweight means of scheduling work that enables multiple units of processing to execut...
Definition: Fiber.ContinueWith.cs:8
static FiberScheduler Current
Gets the default fiber scheduler for the thread.
Definition: FiberScheduler.cs:75
void Dispose()
Releases all resource used by the SpicyPixel.Threading.Tasks.FiberTaskScheduler object.
Definition: FiberTaskScheduler.cs:304
CancellationToken(bool canceled)
Definition: CancellationToken.cs:42
FiberTaskScheduler()
Initializes a new instance of the SpicyPixel.Threading.Tasks.FiberTaskScheduler class.
Definition: FiberTaskScheduler.cs:62
An instruction to terminate execution of the current fiber.
Definition: StopInstruction.cs:37
Definition: IStructuralComparable.cs:33
FiberTaskScheduler(FiberScheduler scheduler)
Initializes a new instance of the SpicyPixel.Threading.Tasks.FiberTaskScheduler class.
Definition: FiberTaskScheduler.cs:73
override IEnumerable< Task > GetScheduledTasks()
For debugger support only, generates an enumerable of Task instances currently queued to the schedule...
Definition: FiberTaskScheduler.cs:176
Definition: AotInterlocked.cs:3
Definition: Task.cs:43
TaskScheduler that can execute fibers (yieldable coroutines).
Definition: FiberTaskScheduler.cs:40