C# Class Jitter.ThreadManager

Jitters ThreadManager class handles the internal multithreading of the engine.
Mostrar archivo Open project: tpb3d/TPB3D

Public Methods

Method Description
AddTask ( Action task, object param ) : void

Adds a task to the ThreadManager. The task and the parameter is added to an internal list. Call Execute to execute and remove the tasks from the internal list.

Execute ( ) : void

Executes all tasks previously added to the ThreadManager. The method finishes when all tasks are complete.

Private Methods

Method Description
Initialize ( ) : void
InitializeInstance ( ) : void
PumpTasks ( ) : void
ThreadManager ( ) : System
ThreadProc ( ) : void

Method Details

AddTask() public method

Adds a task to the ThreadManager. The task and the parameter is added to an internal list. Call Execute to execute and remove the tasks from the internal list.
public AddTask ( Action task, object param ) : void
task Action
param object
return void

Execute() public method

Executes all tasks previously added to the ThreadManager. The method finishes when all tasks are complete.
public Execute ( ) : void
return void