Synced
JobScheduler
Section titled “JobScheduler”
- Owns one isolated frame-scoped job scheduler and hides its concrete execution strategy.
Required contracts
Section titled “Required contracts”API: engine
Implements: System.IDisposable
Inherits: object
Project: Inno.Core.Jobs
Declaration
Section titled “Declaration”public sealed class Inno.Core.Jobs.JobScheduler : System.IDisposableMembers
Section titled “Members”| Kind | Element | Description |
|---|---|---|
| Constructors | JobScheduler.Constructor | Creates a scheduler using the requested execution strategy. |
| Methods | JobScheduler.BeginFrame | Opens a frame scheduling scope on the owner thread. |
| Methods | JobScheduler.CombineDependencies | Creates one handle that completes after every supplied dependency. |
| Methods | JobScheduler.Complete | Blocks the calling thread until one scheduled operation completes. |
| Methods | JobScheduler.CompleteAll | Blocks the calling thread until every supplied operation completes. |
| Methods | JobScheduler.Dispose | Stops worker threads and releases every pending scheduling resource. |
| Methods | JobScheduler.DrainMainThreadQueue | Attempts at most the configured drain budget from the current queue snapshot; reentrant posts wait for a later drain. |
| Methods | JobScheduler.EndFrame | Completes every frame job and closes the current frame scheduling scope. |
| Methods | JobScheduler.EnqueueMainThread | Enqueues an operation that must run on the scheduler owner thread. |
| Methods | JobScheduler.ParallelFor | Schedules a range as independent contiguous batches. |
| Methods | JobScheduler.Schedule(System.Action) | Schedules one parameterless job in the current frame. |
| Methods | JobScheduler.Schedule(System.Action{System.Object},System.Object,System.ReadOnlySpan{Inno.Core.Jobs.JobHandle}) | Schedules one stateful job after all supplied dependencies complete. |
| Properties | JobScheduler.statistics | Gets detached admission and owner-thread queue measurements. |
| Properties | JobScheduler.workerCount | Gets the number of background workers owned by this scheduler. |