Свойство | Тип | Описание | |
---|---|---|---|
IFiberScheduler | void | ||
SetCurrentScheduler | void |
Метод | Описание | |
---|---|---|
Dispose ( ) : void |
Releases all resource used by the SpicyPixel.Threading.FiberScheduler object. Call the method when you are finished using the SpicyPixel.Threading.FiberScheduler. The method leaves the SpicyPixel.Threading.FiberScheduler in an unusable state. After calling the method, you must release all references to the SpicyPixel.Threading.FiberScheduler so the garbage collector can reclaim the memory that the SpicyPixel.Threading.FiberScheduler was occupying. |
|
Run ( ) : void |
Run the blocking scheduler loop and perform the specified number of updates per second. Not all schedulers support a blocking run loop that can be invoked by the caller. |
|
Run ( |
Run the blocking scheduler loop and perform the specified number of updates per second. Not all schedulers support a blocking run loop that can be invoked by the caller. |
|
Run ( |
Run the blocking scheduler loop and perform the specified number of updates per second. Not all schedulers support a blocking run loop that can be invoked by the caller. |
|
Run ( |
Run the blocking scheduler loop and perform the specified number of updates per second. Not all schedulers support a blocking run loop that can be invoked by the caller. |
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void |
Dispose the scheduler. When the scheduler is disposed, the CancellationToken is set. |
|
ExecuteFiber ( |
Executes the fiber until it ends or yields. Custom schedulers will need to invoke this method in order to actually perform the work of the fiber and cause the correct state transitions to occur. |
|
FiberScheduler ( ) : System |
Initializes a new instance of the SpicyPixel.Threading.FiberScheduler class.
|
|
QueueFiber ( |
Queues the fiber for execution on the scheduler. Fibers queued from the scheduler thread will generally be executed inline whenever possible on most schedulers. |
Метод | Описание | |
---|---|---|
IFiberScheduler ( |
||
SetCurrentScheduler ( |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | /// Disposing is true when called manually, /// false when called by the finalizer. /// |
Результат | void |
protected ExecuteFiber ( |
||
fiber | /// The fiber to execute. /// | |
Результат |
protected abstract QueueFiber ( |
||
fiber | /// The fiber to queue. /// | |
Результат | void |
public Run ( |
||
token | /// A cancellation token that can be used to stop execution. /// | |
updatesPerSecond | float |
/// Updates to all fibers per second. A value of |
Результат | void |
public Run ( |
||
fiber | /// The initial fiber to start on the scheduler. /// | |
Результат | void |
public Run ( |
||
fiber |
/// The optional fiber to start execution from. If this is |
|
token | /// A cancellation token that can be used to stop execution. /// | |
updatesPerSecond | float |
/// Updates to all fibers per second. A value of |
Результат | void |