ParallelHelper.For2D Method

Definition

Overloads

For2D<TAction>(Int32, Int32, Int32, Int32, TAction, Int32)

Executes a specified action in an optimized parallel loop.

For2D<TAction>(Int32, Int32, Int32, Int32, TAction)

Executes a specified action in an optimized parallel loop.

For2D<TAction>(Range, Range, TAction, Int32)

Executes a specified action in an optimized parallel loop.

For2D<TAction>(Int32, Int32, Int32, Int32)

Executes a specified action in an optimized parallel loop.

For2D<TAction>(Range, Range, TAction)

Executes a specified action in an optimized parallel loop.

For2D<TAction>(Int32, Int32, Int32, Int32, Int32)

Executes a specified action in an optimized parallel loop.

For2D<TAction>(Rectangle, TAction, Int32)

Executes a specified action in an optimized parallel loop.

For2D<TAction>(Range, Range)

Executes a specified action in an optimized parallel loop.

For2D<TAction>(Rectangle, TAction)

Executes a specified action in an optimized parallel loop.

For2D<TAction>(Rectangle, Int32)

Executes a specified action in an optimized parallel loop.

For2D<TAction>(Rectangle)

Executes a specified action in an optimized parallel loop.

For2D<TAction>(Range, Range, Int32)

Executes a specified action in an optimized parallel loop.

For2D<TAction>(Int32, Int32, Int32, Int32, TAction, Int32)

Executes a specified action in an optimized parallel loop.

public static void For2D<TAction> (int top, int bottom, int left, int right, in TAction action, int minimumActionsPerThread) where TAction : struct;
static member For2D : int * int * int * int * 'Action * int -> unit (requires 'Action : struct)
Public Shared Sub For2D(Of TAction As Structure) (top As Integer, bottom As Integer, left As Integer, right As Integer, ByRef action As TAction, minimumActionsPerThread As Integer)

Type Parameters

TAction

The type of action (implementing IAction2D) to invoke for each pair of iteration indices.

Parameters

top
Int32

The starting iteration value for the outer loop.

bottom
Int32

The final iteration value for the outer loop (exclusive).

left
Int32

The starting iteration value for the inner loop.

right
Int32

The final iteration value for the inner loop (exclusive).

action
TAction

The TAction instance representing the action to invoke.

minimumActionsPerThread
Int32

The minimum number of actions to run per individual thread. Set to 1 if all invocations should be parallelized, or to a greater number if each individual invocation is fast enough that it is more efficient to set a lower bound per each running thread.

Applies to

For2D<TAction>(Int32, Int32, Int32, Int32, TAction)

Executes a specified action in an optimized parallel loop.

public static void For2D<TAction> (int top, int bottom, int left, int right, in TAction action) where TAction : struct;
static member For2D : int * int * int * int * 'Action -> unit (requires 'Action : struct)
Public Shared Sub For2D(Of TAction As Structure) (top As Integer, bottom As Integer, left As Integer, right As Integer, ByRef action As TAction)

Type Parameters

TAction

The type of action (implementing IAction2D) to invoke for each pair of iteration indices.

Parameters

top
Int32

The starting iteration value for the outer loop.

bottom
Int32

The final iteration value for the outer loop (exclusive).

left
Int32

The starting iteration value for the inner loop.

right
Int32

The final iteration value for the inner loop (exclusive).

action
TAction

The TAction instance representing the action to invoke.

Applies to

For2D<TAction>(Range, Range, TAction, Int32)

Executes a specified action in an optimized parallel loop.

public static void For2D<TAction> (Range i, Range j, in TAction action, int minimumActionsPerThread) where TAction : struct;
static member For2D : Range * Range * 'Action * int -> unit (requires 'Action : struct)
Public Shared Sub For2D(Of TAction As Structure) (i As Range, j As Range, ByRef action As TAction, minimumActionsPerThread As Integer)

Type Parameters

TAction

The type of action (implementing IAction2D) to invoke for each pair of iteration indices.

Parameters

i
Range

The Range value indicating the iteration range for the outer loop.

j
Range

The Range value indicating the iteration range for the inner loop.

action
TAction

The TAction instance representing the action to invoke.

minimumActionsPerThread
Int32

The minimum number of actions to run per individual thread. Set to 1 if all invocations should be parallelized, or to a greater number if each individual invocation is fast enough that it is more efficient to set a lower bound per each running thread.

Applies to

For2D<TAction>(Int32, Int32, Int32, Int32)

Executes a specified action in an optimized parallel loop.

public static void For2D<TAction> (int top, int bottom, int left, int right) where TAction : struct;
static member For2D : int * int * int * int -> unit (requires 'Action : struct)
Public Shared Sub For2D(Of TAction As Structure) (top As Integer, bottom As Integer, left As Integer, right As Integer)

Type Parameters

TAction

The type of action (implementing IAction2D) to invoke for each pair of iteration indices.

Parameters

top
Int32

The starting iteration value for the outer loop.

bottom
Int32

The final iteration value for the outer loop (exclusive).

left
Int32

The starting iteration value for the inner loop.

right
Int32

The final iteration value for the inner loop (exclusive).

Applies to

For2D<TAction>(Range, Range, TAction)

Executes a specified action in an optimized parallel loop.

public static void For2D<TAction> (Range i, Range j, in TAction action) where TAction : struct;
static member For2D : Range * Range * 'Action -> unit (requires 'Action : struct)
Public Shared Sub For2D(Of TAction As Structure) (i As Range, j As Range, ByRef action As TAction)

Type Parameters

TAction

The type of action (implementing IAction2D) to invoke for each pair of iteration indices.

Parameters

i
Range

The Range value indicating the iteration range for the outer loop.

j
Range

The Range value indicating the iteration range for the inner loop.

action
TAction

The TAction instance representing the action to invoke.

Applies to

For2D<TAction>(Int32, Int32, Int32, Int32, Int32)

Executes a specified action in an optimized parallel loop.

public static void For2D<TAction> (int top, int bottom, int left, int right, int minimumActionsPerThread) where TAction : struct;
static member For2D : int * int * int * int * int -> unit (requires 'Action : struct)
Public Shared Sub For2D(Of TAction As Structure) (top As Integer, bottom As Integer, left As Integer, right As Integer, minimumActionsPerThread As Integer)

Type Parameters

TAction

The type of action (implementing IAction2D) to invoke for each pair of iteration indices.

Parameters

top
Int32

The starting iteration value for the outer loop.

bottom
Int32

The final iteration value for the outer loop (exclusive).

left
Int32

The starting iteration value for the inner loop.

right
Int32

The final iteration value for the inner loop (exclusive).

minimumActionsPerThread
Int32

The minimum number of actions to run per individual thread. Set to 1 if all invocations should be parallelized, or to a greater number if each individual invocation is fast enough that it is more efficient to set a lower bound per each running thread.

Applies to

For2D<TAction>(Rectangle, TAction, Int32)

Executes a specified action in an optimized parallel loop.

public static void For2D<TAction> (System.Drawing.Rectangle area, in TAction action, int minimumActionsPerThread) where TAction : struct;
static member For2D : System.Drawing.Rectangle * 'Action * int -> unit (requires 'Action : struct)
Public Shared Sub For2D(Of TAction As Structure) (area As Rectangle, ByRef action As TAction, minimumActionsPerThread As Integer)

Type Parameters

TAction

The type of action (implementing IAction2D) to invoke for each pair of iteration indices.

Parameters

area
Rectangle

The Rectangle value indicating the 2D iteration area to use.

action
TAction

The TAction instance representing the action to invoke.

minimumActionsPerThread
Int32

The minimum number of actions to run per individual thread. Set to 1 if all invocations should be parallelized, or to a greater number if each individual invocation is fast enough that it is more efficient to set a lower bound per each running thread.

Applies to

For2D<TAction>(Range, Range)

Executes a specified action in an optimized parallel loop.

public static void For2D<TAction> (Range i, Range j) where TAction : struct;
static member For2D : Range * Range -> unit (requires 'Action : struct)
Public Shared Sub For2D(Of TAction As Structure) (i As Range, j As Range)

Type Parameters

TAction

The type of action (implementing IAction2D) to invoke for each pair of iteration indices.

Parameters

i
Range

The Range value indicating the iteration range for the outer loop.

j
Range

The Range value indicating the iteration range for the inner loop.

Applies to

For2D<TAction>(Rectangle, TAction)

Executes a specified action in an optimized parallel loop.

public static void For2D<TAction> (System.Drawing.Rectangle area, in TAction action) where TAction : struct;
static member For2D : System.Drawing.Rectangle * 'Action -> unit (requires 'Action : struct)
Public Shared Sub For2D(Of TAction As Structure) (area As Rectangle, ByRef action As TAction)

Type Parameters

TAction

The type of action (implementing IAction2D) to invoke for each pair of iteration indices.

Parameters

area
Rectangle

The Rectangle value indicating the 2D iteration area to use.

action
TAction

The TAction instance representing the action to invoke.

Applies to

For2D<TAction>(Rectangle, Int32)

Executes a specified action in an optimized parallel loop.

public static void For2D<TAction> (System.Drawing.Rectangle area, int minimumActionsPerThread) where TAction : struct;
static member For2D : System.Drawing.Rectangle * int -> unit (requires 'Action : struct)
Public Shared Sub For2D(Of TAction As Structure) (area As Rectangle, minimumActionsPerThread As Integer)

Type Parameters

TAction

The type of action (implementing IAction2D) to invoke for each pair of iteration indices.

Parameters

area
Rectangle

The Rectangle value indicating the 2D iteration area to use.

minimumActionsPerThread
Int32

The minimum number of actions to run per individual thread. Set to 1 if all invocations should be parallelized, or to a greater number if each individual invocation is fast enough that it is more efficient to set a lower bound per each running thread.

Applies to

For2D<TAction>(Rectangle)

Executes a specified action in an optimized parallel loop.

public static void For2D<TAction> (System.Drawing.Rectangle area) where TAction : struct;
static member For2D : System.Drawing.Rectangle -> unit (requires 'Action : struct)
Public Shared Sub For2D(Of TAction As Structure) (area As Rectangle)

Type Parameters

TAction

The type of action (implementing IAction2D) to invoke for each pair of iteration indices.

Parameters

area
Rectangle

The Rectangle value indicating the 2D iteration area to use.

Applies to

For2D<TAction>(Range, Range, Int32)

Executes a specified action in an optimized parallel loop.

public static void For2D<TAction> (Range i, Range j, int minimumActionsPerThread) where TAction : struct;
static member For2D : Range * Range * int -> unit (requires 'Action : struct)
Public Shared Sub For2D(Of TAction As Structure) (i As Range, j As Range, minimumActionsPerThread As Integer)

Type Parameters

TAction

The type of action (implementing IAction2D) to invoke for each pair of iteration indices.

Parameters

i
Range

The Range value indicating the iteration range for the outer loop.

j
Range

The Range value indicating the iteration range for the inner loop.

minimumActionsPerThread
Int32

The minimum number of actions to run per individual thread. Set to 1 if all invocations should be parallelized, or to a greater number if each individual invocation is fast enough that it is more efficient to set a lower bound per each running thread.

Applies to