C# Class DotNetWorkQueue.TaskScheduling.WorkGroupWithItem

Stores the work group along with the smart thread pool work items group
ファイルを表示 Open project: blehnen/DotNetWorkQueue Class Usage Examples

Public Properties

Property Type Description
CurrentWorkItems int

Public Methods

Method Description
WorkGroupWithItem ( IWorkGroup sourceGroup, IWorkItemsGroup threadGroup, ICounter metricCounter ) : Amib.Threading

Initializes a new instance of the WorkGroupWithItem class.

Method Details

WorkGroupWithItem() public method

Initializes a new instance of the WorkGroupWithItem class.
public WorkGroupWithItem ( IWorkGroup sourceGroup, IWorkItemsGroup threadGroup, ICounter metricCounter ) : Amib.Threading
sourceGroup IWorkGroup The source group.
threadGroup IWorkItemsGroup The thread group.
metricCounter ICounter A counter for tracking how many items are being processed
return Amib.Threading

Property Details

CurrentWorkItems public_oe property

How many work items are being processed and are also in the queue
This cannot be a property, as it's updated via interlock
public int CurrentWorkItems
return int