docs.unity.cn
    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 Copyright © 2022 Unity Technologies
    Generated by DocFX
    on 03 February 2022
    Terms of use