C# Class HikariThreading.ManagerBase

Base class for Thread- and UnityManager. Contains the helpful stuff that's shared between them for dispatching tasks.
Afficher le fichier Open project: ReinAkane/Hikari

Protected Properties

Свойство Type Description
napping List
waiting Queue
workLock object

Méthodes protégées

Méthode Description
UnsafeRequeueAwakenedTasks ( ) : void

Checks all napping tasks and Enqueues the awakened ones. This is not threadsafe in regard to napping list.

Private Methods

Méthode Description
EnqueueTask ( ITask task ) : void

Enqueues a task to be run when the next thread is available.

ManagerBase ( ) : System
UnsafeUpdate ( ) : void

Checks for napping and awaked tasks, and assigns work.

Method Details

UnsafeRequeueAwakenedTasks() protected méthode

Checks all napping tasks and Enqueues the awakened ones. This is not threadsafe in regard to napping list.
protected UnsafeRequeueAwakenedTasks ( ) : void
Résultat void

Property Details

napping protected_oe property

List of napping Tasks. Should only be accessed in UnsafeUpdate.
protected List napping
Résultat List

waiting protected_oe property

Queue of Tasks waiting to be executed. This includes all recently woken Tasks.
protected Queue waiting
Résultat Queue

workLock protected_oe property

Lock for our waiting list.
protected object workLock
Résultat object