BEPUphysics.Threading.ThreadManagerTPL.ForLoop C# (CSharp) Метод

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

Loops from the starting index (inclusive) to the ending index (exclusive), calling the loopBody at each iteration. The forLoop function will not return until all iterations are complete. This is meant to be used in a 'fork-join' model; only a single thread should be running a forLoop at any time.
public ForLoop ( int startIndex, int endIndex, Action loopBody ) : void
startIndex int Inclusive starting index.
endIndex int Exclusive ending index.
loopBody Action Function that handles an individual iteration of the loop.
Результат void
        public void ForLoop(int startIndex, int endIndex, Action<int> loopBody)
        {
            Parallel.For(startIndex, endIndex, loopBody);
        }