Class Workload
A piece of work that can be executed.
Inherited Members
Namespace: SpiceSharp.Components.ParallelComponents
Assembly: SpiceSharp.dll
Syntax
public class Workload
Constructors
Workload(IWorkDistributor, int)
Initializes a new instance of the Workload class.
Declaration
public Workload(IWorkDistributor distributor, int capacity)
Parameters
Type | Name | Description |
---|---|---|
IWorkDistributor | distributor | The distributor. |
int | capacity | The initial capacity. |
Properties
Actions
Gets the actions.
Declaration
public List<Action> Actions { get; }
Property Value
Type | Description |
---|---|
List<Action> | The actions. |
Methods
Execute()
Executes the work.
Declaration
public void Execute()