CORE Game Developers Toolkit v1.0.93
 
Loading...
Searching...
No Matches
CORE.Shared.Dispatcher Class Reference
+ Inheritance diagram for CORE.Shared.Dispatcher:

Static Public Member Functions

static void Enqueue (Action action, bool delayCall=true)
 Enqueue an action on the main Thread.
 
static Coroutine StartCoroutineGlobal (IEnumerator routine)
 
static void StopCoroutineGlobal (Coroutine routine)
 

Private Member Functions

void Awake ()
 
void Update ()
 
void OnDestroy ()
 
void ProcessQueue ()
 

Static Private Attributes

static readonly Queue< Action > _executionQueue = new Queue<Action>()
 
static Thread MainThread
 
static Dispatcher Instance
 

Member Function Documentation

◆ Awake()

void CORE.Shared.Dispatcher.Awake ( )
private

◆ Enqueue()

static void CORE.Shared.Dispatcher.Enqueue ( Action action,
bool delayCall = true )
static

Enqueue an action on the main Thread.

Parameters
actionThe action.
delayCallIf we already are on the main thread, enqueue and delay the call anyways.

◆ OnDestroy()

void CORE.Shared.Dispatcher.OnDestroy ( )
private

◆ ProcessQueue()

void CORE.Shared.Dispatcher.ProcessQueue ( )
private

◆ StartCoroutineGlobal()

static Coroutine CORE.Shared.Dispatcher.StartCoroutineGlobal ( IEnumerator routine)
static

◆ StopCoroutineGlobal()

static void CORE.Shared.Dispatcher.StopCoroutineGlobal ( Coroutine routine)
static

◆ Update()

void CORE.Shared.Dispatcher.Update ( )
private

Member Data Documentation

◆ _executionQueue

readonly Queue<Action> CORE.Shared.Dispatcher._executionQueue = new Queue<Action>()
staticprivate

◆ Instance

Dispatcher CORE.Shared.Dispatcher.Instance
staticprivate

◆ MainThread

Thread CORE.Shared.Dispatcher.MainThread
staticprivate

The documentation for this class was generated from the following file: