public final class Parallel
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
For(int first,
int last,
IAction1Arg<java.lang.Integer> action)
Executes a for loop in which iterations may run in parallel.
|
static void |
For(int first,
int last,
IAction1Arg<java.lang.Integer> action,
int partitionSize)
Executes a for loop in which iterations may run in parallel
using a specified partition size.
|
static void |
For(int first,
int last,
IAction1Arg<java.lang.Integer> action,
ParallelLoopState state)
Executes a for loop in which iterations may run in parallel, and
the state of the loop can be monitored and manipulated.
|
static void |
For(int first,
int last,
IAction1Arg<java.lang.Integer> action,
ParallelLoopState state,
int partitionSize)
Executes a for loop in which iterations may run in parallel using a specified
partition size.
|
static void |
For(long first,
long last,
IAction1Arg<java.lang.Long> action)
Executes a for loop in which iterations may run in parallel.
|
static void |
For(long first,
long last,
IAction1Arg<java.lang.Long> action,
int partitionSize)
Executes a for loop in which iterations may run in parallel
using a specified partition size.
|
static void |
For(long first,
long last,
IAction1Arg<java.lang.Long> action,
ParallelLoopState state)
Executes a for loop in which iterations may run in parallel, and
the state of the loop can be monitored and manipulated.
|
static void |
For(long first,
long last,
IAction1Arg<java.lang.Long> action,
ParallelLoopState state,
int partitionSize)
Executes a for loop in which iterations may run in parallel using a specified
partition size.
|
static void |
Invoke(IAction0Arg[] actions)
Executes each of the provided actions, possibly in parallel.
|
static void |
Invoke(IAction0Arg action1,
IAction0Arg action2)
Executes each of the provided actions, possibly in parallel.
|
public static void For(int first,
int last,
IAction1Arg<java.lang.Integer> action)
first - An integer addressing the position of the
first element in the range to be executed.last - An integer addressing the position one
past the final element in the range to be executed.action - The function object that is invoked once per iteration.public static void For(int first,
int last,
IAction1Arg<java.lang.Integer> action,
int partitionSize)
first - An integer addressing the position of the
first element in the range to be executed.last - An integer addressing the position one
past the final element in the range to be executed.action - The function object that is invoked once per iteration.partitionSize - The specified partition size.public static void For(long first,
long last,
IAction1Arg<java.lang.Long> action)
first - An integer addressing the position of the
first element in the range to be executed.last - An integer addressing the position one
past the final element in the range to be executed.action - The function object that is invoked once per iteration.public static void For(long first,
long last,
IAction1Arg<java.lang.Long> action,
int partitionSize)
first - An integer addressing the position of the
first element in the range to be executed.last - An integer addressing the position one
past the final element in the range to be executed.action - The function object that is invoked once per iteration.partitionSize - The specified partition size.public static void For(int first,
int last,
IAction1Arg<java.lang.Integer> action,
ParallelLoopState state)
first - An integer addressing the position of the
first element in the range to be executed.last - An integer addressing the position one
past the final element in the range to be executed.action - The function object that is invoked once per iteration.state - The state of the loop, which can be monitored and manipulated.public static void For(int first,
int last,
IAction1Arg<java.lang.Integer> action,
ParallelLoopState state,
int partitionSize)
first - An integer addressing the position of the
first element in the range to be executed.last - An integer addressing the position one
past the final element in the range to be executed.action - The function object that is invoked once per iteration.state - The state of the loop, which can be monitored and manipulated.partitionSize - The specified partition size.public static void For(long first,
long last,
IAction1Arg<java.lang.Long> action,
ParallelLoopState state)
first - An integer addressing the position of the
first element in the range to be executed.last - An integer addressing the position one
past the final element in the range to be executed.action - The function object that is invoked once per iteration.state - The state of the loop, which can be monitored and manipulated.public static void For(long first,
long last,
IAction1Arg<java.lang.Long> action,
ParallelLoopState state,
int partitionSize)
first - An integer addressing the position of the
first element in the range to be executed.last - An integer addressing the position one
past the final element in the range to be executed.action - The function object that is invoked once per iteration.state - The state of the loop, which can be monitored and manipulated.partitionSize - The specified partition size.public static void Invoke(IAction0Arg action1, IAction0Arg action2)
action1 - The first function object to execute.action2 - The second function object to execute.public static void Invoke(IAction0Arg[] actions)
actions - An array of IAction0Arg to execute.Copyright© 2012 Progeneric Systems, Inc. All Rights Reserved.