FiberScheduler.cs
Go to the documentation of this file.
61 {
75 {
111 throw new InvalidOperationException("The current scheduler for the thread cannot be changed from inside an executing fiber.");
121 if(currentScheduler != null && SynchronizationContext.Current != currentScheduler.SynchronizationContext)
169 {
virtual void Run(CancellationToken token, float updatesPerSecond=0f)
Run the blocking scheduler loop and perform the specified number of updates per second.
Definition: FiberScheduler.cs:264
This class is the system default implementation of a FiberScheduler and is capable of scheduling and ...
Definition: SystemFiberScheduler.cs:46
void Run(Fiber fiber)
Run the blocking scheduler loop and perform the specified number of updates per second.
Definition: FiberScheduler.cs:212
void Cancel()
Definition: CancellationTokenSource.cs:129
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
Represents a fiber instruction to be processed by a FiberScheduler.
Definition: FiberInstruction.cs:43
void Run()
Run the blocking scheduler loop and perform the specified number of updates per second.
Definition: FiberScheduler.cs:246
void Dispose()
Releases all resource used by the SpicyPixel.Threading.FiberScheduler object.
Definition: FiberScheduler.cs:344
CancellationToken Token
Definition: CancellationTokenSource.cs:109
FiberScheduler()
Initializes a new instance of the SpicyPixel.Threading.FiberScheduler class.
Definition: FiberScheduler.cs:184
static FiberScheduler Current
Gets the default fiber scheduler for the thread.
Definition: FiberScheduler.cs:75
Fiber scheduler synchronization context to support task synchronization across schedulers or other sy...
Definition: FiberSchedulerSynchronizationContext.cs:37
virtual void Run(Fiber fiber, CancellationToken token, float updatesPerSecond=0f)
Run the blocking scheduler loop and perform the specified number of updates per second.
Definition: FiberScheduler.cs:235
static CancellationToken None
Definition: CancellationToken.cs:52
FiberInstruction ExecuteFiber(Fiber fiber)
Executes the fiber until it ends or yields.
Definition: FiberScheduler.cs:312
static Fiber CurrentFiber
Gets the currently executing fiber on this thread.
Definition: Fiber.cs:107
Definition: AotInterlocked.cs:3