UnityFiberScheduler.cs
Go to the documentation of this file.
44 private static readonly UnityFiberScheduler instance = new UnityFiberScheduler(ConcurrentBehaviour.SharedInstance);
178 private IEnumerator ExecuteFiberInternal(Fiber fiber, bool singleStep = false, int fiberSwitchCount = 0)
Yield execution until the watched fiber on the same scheduler is complete.
Definition: YieldUntilComplete.cs:36
Wraps an object as an instruction
Definition: ObjectInstruction.cs:34
override void AbortRequested(Fiber fiber)
Invoked when an abort has been requested.
Definition: UnityFiberScheduler.cs:120
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
IDictionary< string, object > Properties
Gets user-defined properties associated with the fiber.
Definition: Fiber.cs:150
static ConcurrentBehaviour SharedInstance
Gets the shared instance valid for the lifetime of the application.
Definition: ConcurrentBehaviour.cs:62
bool TryDequeue(out T result)
Definition: ConcurrentQueue.cs:97
override string ToString()
Returns a System.String that represents the current SpicyPixel.Threading.UnityFiberScheduler.
Definition: UnityFiberScheduler.cs:240
Convenience class that extends MonoBehavior to provide a Scheduler and TaskFactory for executing task...
Definition: ConcurrentBehaviour.cs:45
Yield execution to a specific fiber belonging to the same scheduler as the current fiber...
Definition: YieldToFiber.cs:35
FiberScheduler that can execute fibers (yieldable coroutines) during the update cycle of a MonoBehavi...
Definition: UnityFiberScheduler.cs:40
A FiberInstruction to pause execution of a fiber for the specified duration.
Definition: YieldForSeconds.cs:35
void Enqueue(T item)
Definition: ConcurrentQueue.cs:62
An instruction to terminate execution of the current fiber.
Definition: StopInstruction.cs:37
Definition: IStructuralComparable.cs:33
override void QueueFiber(Fiber fiber)
Queues the fiber for execution on the scheduler.
Definition: UnityFiberScheduler.cs:94
bool IsCompleted
Gets a value indicating whether this instance is completed.
Definition: Fiber.cs:204
UnityFiberScheduler(MonoBehaviour behaviour)
Initializes a new instance of the SpicyPixel.Threading.UnityFiberScheduler class. ...
Definition: UnityFiberScheduler.cs:78
Definition: AotInterlocked.cs:3
An instruction to yield execution to any fiber.
Definition: YieldToAnyFiber.cs:37