C# Class BEPUutilities2.Threading.ParallelLooper

Manages parallel for loops. Cannot handle general task-based parallelism.
Inheritance: IParallelLooper, IDisposable
Afficher le fichier Open project: RossNordby/scratchpad Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
OnWorkerFinish ( ) : void

Method Details

AddThread() public méthode

Adds a thread to the manager.
public AddThread ( ) : void
Résultat void

AddThread() public méthode

Adds a thread to the manager.
public AddThread ( System.Action threadStart ) : void
threadStart System.Action Initialization to run on the worker thread.
Résultat void

Dispose() public méthode

Releases resources used by the object.
public Dispose ( ) : void
Résultat void

ForLoop() public méthode

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.
Résultat void

ParallelLooper() public méthode

Constructs a new parallel loop manager.
public ParallelLooper ( ) : System
Résultat System

RemoveThread() public méthode

Removes a thread from the manager.
public RemoveThread ( ) : void
Résultat void