C# Класс Jitter.ThreadManager

Jitters ThreadManager class handles the internal multithreading of the engine.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Initialize ( ) : void
InitializeInstance ( ) : void
PumpTasks ( ) : void
ThreadManager ( ) : System
ThreadProc ( ) : void

Описание методов

AddTask() публичный Метод

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
Результат void

Execute() публичный Метод

Executes all tasks previously added to the ThreadManager. The method finishes when all tasks are complete.
public Execute ( ) : void
Результат void