C# Class HikariThreading.ManagerBase

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

Protected Properties

Property Type Description
napping List
waiting Queue
workLock object

Protected Methods

Method Description
UnsafeRequeueAwakenedTasks ( ) : void

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

Private Methods

Method 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 method

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

Property Details

napping protected_oe property

List of napping Tasks. Should only be accessed in UnsafeUpdate.
protected List napping
return List

waiting protected_oe property

Queue of Tasks waiting to be executed. This includes all recently woken Tasks.
protected Queue waiting
return Queue

workLock protected_oe property

Lock for our waiting list.
protected object workLock
return object