MrKWatkins.Ast Help

ParallelPipelineStageBuilder<TNode> Class

Definition

Fluent builder for a parallel pipeline stage.

public sealed class ParallelPipelineStageBuilder<TNode> : PipelineStageBuilder<ParallelPipelineStageBuilder<TNode>, UnorderedProcessor<TNode>, TNode> where TNode : Node<TNode>

Type Parameters

Name

Description

TNode

The type of nodes in the tree.

Methods

Name

Description

WithMaxDegreeOfParallelism(Int32)

Sets the maximum degree of parallelism for parallel processing. If set to 1 then the stage will proceed in serial. If greater than 1 then 1 thread will be used to walk the tree and the other threads will be used to process the nodes. Defaults to the number of processors in the machine.

Last modified: 22 November 2024