docs.unity3d.com
    Show / Hide Table of Contents

    Class Scheduler

    Inheritance
    Object
    Scheduler
    Namespace: Unity.Reflect.ActorFramework
    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 Unity.Reflect.ActorFramework.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

    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 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
    public void Shutdown()

    Start()

    Declaration
    public void Start()

    Stop()

    Declaration
    public void Stop()

    Tick(TimeSpan, TimeSpan, Int32)

    Declaration
    public void Tick(TimeSpan startTime, TimeSpan endTime, int groupIndex)
    Parameters
    Type Name Description
    TimeSpan startTime
    TimeSpan endTime
    Int32 groupIndex

    WakeUpActor(ActorHandle)

    Declaration
    public void WakeUpActor(ActorHandle handle)
    Parameters
    Type Name Description
    ActorHandle handle
    Back to top
    Terms of use
    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