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

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

RunSingleThreaded

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

ThreadCount

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

Methods

CreateOptions

protected ParallelOptions CreateOptions(CancellationToken token)
inherited fromAbstractProcess
token (CancellationToken)

Perform

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

Perform

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

Process

#
protected abstract void Process(T1 x, CancellationToken token)
x (T1)
token (CancellationToken)