docs.unity3d.com
    Show / Hide Table of Contents

    Class Scheduler

    Inheritance
    Object
    Scheduler
    Namespace: Reflect.Unity.Actor
    Syntax
    public class Scheduler

    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
    Type Name Description
    Actor<Object> actor
    Int32 groupIndex

    AwakeActor(ActorRef)

    Declaration
    public void AwakeActor(ActorRef actorRef)
    Parameters
    Type Name Description
    ActorRef actorRef

    Remove(Actor<Object>)

    Declaration
    public void Remove(Actor<object> actor)
    Parameters
    Type Name Description
    Actor<Object> actor

    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
    Type Name Description
    CancellationToken token

    Stop()

    Declaration
    public void Stop()

    Tick(TimeSpan, CancellationToken, Int32)

    Declaration
    public void Tick(TimeSpan endTime, CancellationToken token, int groupIndex)
    Parameters
    Type Name Description
    TimeSpan endTime
    CancellationToken token
    Int32 groupIndex
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023