ParallelProcess<T1>

AbstractProcess
public abstract class ParallelProcess<T1> : AbstractProcess
Represents an optimized parallel loop for one input array and no output.
T1Type of input.

Properties

CountOverride

Gets or sets the number of iterations to process. If the override is negative, the size of the longest input array determines the count.
public int CountOverride { get; set; }
inherited fromAbstractProcess

RunSingleThreaded

Gets whether this process is supposed to run in single threaded mode.
public bool RunSingleThreaded { get; }
inherited fromAbstractProcess

ThreadCount

Gets or sets the maximum degrees of parallelism for this process. Leave the value at a negative number to revert to default.
public int ThreadCount { get; set; }
inherited fromAbstractProcess

Methods

CreateOptions

protected ParallelOptions CreateOptions()
inherited fromAbstractProcess

Perform

#
Perform a parallel process.
public void Perform(
T1[]
data1,
Data to operate on.
token
Cancellation token.
)

Perform

#
Perform a parallel process without the ability to cancel.
public void Perform(
T1[]
data1
Data to operate on.
)

Process

#
protected abstract void Process()