UnityFiberScheduler.cs
Go to the documentation of this file.
44 private static readonly UnityFiberScheduler instance = new UnityFiberScheduler(ConcurrentBehaviour.SharedInstance);
163 private IEnumerator ExecuteFiberInternal(Fiber fiber, bool singleStep = false, int fiberSwitchCount = 0)
static UnityFiberScheduler Default
Gets the shared fiber scheduler instance.
Definition: UnityFiberScheduler.cs:50
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
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:225
Convenience class that extends MonoBehavior to provide a Scheduler and TaskFactory for executing task...
Definition: ConcurrentBehaviour.cs:45
FiberScheduler that can execute fibers (yieldable coroutines) during the update cycle of a MonoBehavi...
Definition: UnityFiberScheduler.cs:40
void Enqueue(T item)
Definition: ConcurrentQueue.cs:62
FiberInstruction ExecuteFiber(Fiber fiber)
Executes the fiber until it ends or yields.
Definition: FiberScheduler.cs:292
Definition: IStructuralComparable.cs:33
override void QueueFiber(Fiber fiber)
Queues the fiber for execution on the scheduler.
Definition: UnityFiberScheduler.cs:94
Definition: Fiber.ContinueWith.cs:6
bool AllowInlining
Gets or sets a value indicating whether this SpicyPixel.Threading.FiberScheduler allows inlining.
Definition: FiberScheduler.cs:179
bool IsCancellationRequested
Definition: CancellationTokenSource.cs:116
UnityFiberScheduler(MonoBehaviour behaviour)
Initializes a new instance of the SpicyPixel.Threading.UnityFiberScheduler class.
Definition: UnityFiberScheduler.cs:78
Definition: AotInterlocked.cs:3