![]() |
Fiber
Fibers Lighweight Cooperative Multitasking
|
Public Member Functions | |
| virtual void | Step () |
| Implement on processing worker (usually calls dispose) More... | |
| override string | ToString () |
| Return worker name More... | |
| virtual void | Dispose () |
| Move Fiber back to queue it came from More... | |
| Fiber | Load (Fiber fiber, T data) |
| Load happens when we are building up a list of actions More... | |
Public Attributes | |
| virtual bool | NoMore => false |
| Implement to stop scanning based on sort order More... | |
| string | Name |
| Name from worker class name More... | |
| T | Seed |
| Payload More... | |
Protected Member Functions | |
| virtual int | CompareTo (Worker other) |
| Implement for worker queue order More... | |
| abstract bool | Prepare () |
| Do any preparation to payload here More... | |
| abstract void | Recycle () |
| Implement anything needed before worker is placed in recycle bin More... | |
| void | ActivateWorker (Fiber fiber) |
| Move fiber to worker queue and start processing More... | |
Static Protected Member Functions | |
| static void | Deactivate (LinkedList< Fiber >.Node node) |
| static int | Compare (LinkedList< Fiber >.Node left, LinkedList< Fiber >.Node right) |
Protected Attributes | |
| Fiber | Fiber |
| Fiber that owns this worker instance More... | |
Static Protected Attributes | |
| static int | Uid |
| static bool | NeedsUpdates = true |
| Set to false for workers that do not need calls on frame update More... | |
|
protected |
|
protectedvirtual |
|
virtual |
| Fiber Askowl.Fiber.Worker< T >.Load | ( | Fiber | fiber, |
| T | data | ||
| ) |
|
protectedpure virtual |
|
protectedpure virtual |
|
virtual |
| override string Askowl.Fiber.Worker< T >.ToString | ( | ) |
|
protected |
| string Askowl.Fiber.Worker< T >.Name |
|
staticprotected |
| virtual bool Askowl.Fiber.Worker< T >.NoMore => false |
| T Askowl.Fiber.Worker< T >.Seed |