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 Reflect.Unity.Actor.Scheduler.ExecutionGroup that was executing it.
Declaration
public void Add(Actor<object> actor, int groupIndex = -1)
Parameters
AwakeActor(ActorRef)
Declaration
public void AwakeActor(ActorRef actorRef)
Parameters
Remove(Actor<Object>)
Declaration
public void Remove(Actor<object> actor)
Parameters
SetPeriodicTickingThread(Int32)
Set a thread (e.g. unity thread) to a specific Reflect.Unity.Actor.Scheduler.ExecutionGroup.
When set, the caller must periodically call Tick(TimeSpan, CancellationToken, Int32) function with the same
, else the Reflect.Unity.Actor.Scheduler.ExecutionGroup will never execute.
Declaration
public void SetPeriodicTickingThread(int groupIndex)
Parameters
Type |
Name |
Description |
Int32 |
groupIndex |
|
Start(CancellationToken)
Declaration
public void Start(CancellationToken token)
Parameters
Stop()
Declaration
Tick(TimeSpan, CancellationToken, Int32)
Declaration
public void Tick(TimeSpan endTime, CancellationToken token, int groupIndex)
Parameters