| ParallelFor Method (Int32, Int32, ActionInt32, Int32) |
Executes a for loop where each iteration can potentially occur in parallel with others.
Namespace: DigitalRune.ThreadingAssembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax public static void For(
int startInclusive,
int endExclusive,
Action<int> body,
int stride
)
Public Shared Sub For (
startInclusive As Integer,
endExclusive As Integer,
body As Action(Of Integer),
stride As Integer
)
public:
static void For(
int startInclusive,
int endExclusive,
Action<int>^ body,
int stride
)
static member For :
startInclusive : int *
endExclusive : int *
body : Action<int> *
stride : int -> unit
Parameters
- startInclusive
- Type: SystemInt32
The index (inclusive) at which to start iterating. - endExclusive
- Type: SystemInt32
The index (exclusive) at which to end iterating. - body
- Type: SystemActionInt32
The method to execute at each iteration. The current index is supplied as the parameter.
- stride
- Type: SystemInt32
The number of iterations that each processor takes at a time.
See Also