C# Класс BEPUutilities2.Threading.ParallelLooper

Manages parallel for loops. Cannot handle general task-based parallelism.
Наследование: IParallelLooper, IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddThread ( ) : void

Adds a thread to the manager.

AddThread ( System.Action threadStart ) : void

Adds a thread to the manager.

Dispose ( ) : void

Releases resources used by the object.

ForLoop ( int beginIndex, int endIndex, Action loopBody ) : void

Iterates over the interval.

ParallelLooper ( ) : System

Constructs a new parallel loop manager.

RemoveThread ( ) : void

Removes a thread from the manager.

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

Метод Описание
OnWorkerFinish ( ) : void

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

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

Adds a thread to the manager.
public AddThread ( ) : void
Результат void

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

Adds a thread to the manager.
public AddThread ( System.Action threadStart ) : void
threadStart System.Action Initialization to run on the worker thread.
Результат void

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

Releases resources used by the object.
public Dispose ( ) : void
Результат void

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

Iterates over the interval.
public ForLoop ( int beginIndex, int endIndex, Action loopBody ) : void
beginIndex int Starting index of the iteration.
endIndex int Ending index of the iteration.
loopBody Action Function to call on each iteration.
Результат void

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

Constructs a new parallel loop manager.
public ParallelLooper ( ) : System
Результат System

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

Removes a thread from the manager.
public RemoveThread ( ) : void
Результат void