Class ParallelWork
Models parallel work.
Implements
Inherited Members
Namespace: DNVGL.One.Compute.Core.FlowModel
Assembly: DNVGL.One.Compute.Core.dll
Syntax
[DataContract]
public class ParallelWork : CompositeWork, IFlowModelItem
Constructors
View SourceParallelWork()
Initializes a new instance of the ParallelWork class.
Declaration
public ParallelWork()
ParallelWork(params WorkItem[])
Initializes a new instance of the ParallelWork class.
Declaration
public ParallelWork(params WorkItem[] workItems)
Parameters
Type | Name | Description |
---|---|---|
WorkItem[] | workItems | The work items. |
ParallelWork(IEnumerable<WorkItem>)
Initializes a new instance of the ParallelWork class.
Declaration
public ParallelWork(IEnumerable<WorkItem> workItems)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<WorkItem> | workItems | The work items. |
Properties
View SourceReductionCondition
Gets or sets the reduction options for scheduling reduction task within this ParallelWork.
Declaration
[DataMember]
public ReductionCondition ReductionCondition { get; set; }
Property Value
Type | Description |
---|---|
ReductionCondition | The reduction scheduling options for this ParallelWork. |
ReductionTask
Gets or sets the reduction task.
Declaration
[DataMember]
public WorkUnit ReductionTask { get; set; }
Property Value
Type | Description |
---|---|
WorkUnit | The reduction task. |
Remarks
If non-null, this WorkUnit will execute after all the tasks of this instance have completed.
SchedulingOptions
Gets or sets the scheduling options for scheduling the work inside this ParallelWork.
Declaration
[DataMember]
public SchedulingOptions SchedulingOptions { get; set; }
Property Value
Type | Description |
---|---|
SchedulingOptions | The scheduling options for this ParallelWork. |
Methods
View SourceGetDescendants()
Gets the descendants.
Declaration
public override IEnumerable<WorkItem> GetDescendants()
Returns
Type | Description |
---|---|
IEnumerable<WorkItem> | Descendant items. |