Class Scheduler
Syntax
Constructors
Scheduler(Int32)
Declaration
public Scheduler(int nbLogicalCores)
Parameters
Type |
Name |
Description |
Int32 |
nbLogicalCores |
|
Methods
Add(Actor<Object>, Int32)
Add an actor in the scheduler. This will not set the actor to the specified
group if the actor is already in the scheduler or has not been signaled as
removed by the Unity.Reflect.ActorFramework.Scheduler.ExecutionGroup that was executing it.
Declaration
public void Add(Actor<object> actor, int groupIndex = -1)
Parameters
Remove(Actor<Object>)
Declaration
public void Remove(Actor<object> actor)
Parameters
SetPeriodicTickingThread(Int32)
Set a thread (e.g. unity thread) to a specific Unity.Reflect.ActorFramework.Scheduler.ExecutionGroup.
When set, the caller must periodically call Tick(TimeSpan, TimeSpan, Int32) function with the same
, else the Unity.Reflect.ActorFramework.Scheduler.ExecutionGroup will never execute.
Declaration
public void SetPeriodicTickingThread(int groupIndex)
Parameters
Type |
Name |
Description |
Int32 |
groupIndex |
|
Shutdown()
Declaration
Start()
Declaration
Stop()
Declaration
Tick(TimeSpan, TimeSpan, Int32)
Declaration
public void Tick(TimeSpan startTime, TimeSpan endTime, int groupIndex)
Parameters
WakeUpActor(ActorHandle)
Declaration
public void WakeUpActor(ActorHandle handle)
Parameters