C# Class BEPUphysics.Threading.ParallelLoopManager

Manages parallel for loops. Cannot handle general task-based parallelism.
Inheritance: IDisposable
Exibir arquivo Open project: Indiefreaks/igf Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Releases resources used by the object.

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

Iterates over the interval.

ParallelLoopManager ( ) : System

Constructs a new parallel loop manager.

Private Methods

Method Description
AddThread ( ) : void
AddThread ( Action threadStart, object threadStartInformation ) : void
OnWorkerFinish ( ) : void
RemoveThread ( ) : void

Method Details

Dispose() public method

Releases resources used by the object.
public Dispose ( ) : void
return void

ForLoop() public method

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.
return void

ParallelLoopManager() public method

Constructs a new parallel loop manager.
public ParallelLoopManager ( ) : System
return System