C# Class Amib.Threading.Internal.WorkItemsGroup

Inheritance: WorkItemsGroupBase
Mostrar archivo Open project: amibar/SmartThreadPool Class Usage Examples

Public Methods

Method Description
Cancel ( bool abortExecution ) : void
EnqueueToSTPNextNWorkItem ( int count ) : void
GetStates ( ) : object[]
OnSTPIsStarting ( ) : void
Start ( ) : void

Start the Work Items Group if it was started suspended

WaitForIdle ( int millisecondsTimeout ) : bool

Wait for the thread pool to be idle

WorkItemsGroup ( SmartThreadPool stp, int concurrency, WIGStartInfo wigStartInfo ) : System

Private Methods

Method Description
Enqueue ( WorkItem workItem ) : void
EnqueueToSTPNextWorkItem ( WorkItem workItem ) : void
EnqueueToSTPNextWorkItem ( WorkItem workItem, bool decrementWorkItemsInStpQueue ) : void
FireOnIdle ( object state ) : object
FireOnIdleImpl ( WorkItemsGroupIdleHandler onIdle ) : void
OnWorkItemCompletedCallback ( WorkItem workItem ) : void
OnWorkItemStartedCallback ( WorkItem workItem ) : void
RegisterToWorkItemCompletion ( IWorkItemResult wir ) : void

Method Details

Cancel() public method

public Cancel ( bool abortExecution ) : void
abortExecution bool
return void

EnqueueToSTPNextNWorkItem() public method

public EnqueueToSTPNextNWorkItem ( int count ) : void
count int
return void

GetStates() public method

public GetStates ( ) : object[]
return object[]

OnSTPIsStarting() public method

public OnSTPIsStarting ( ) : void
return void

Start() public method

Start the Work Items Group if it was started suspended
public Start ( ) : void
return void

WaitForIdle() public method

Wait for the thread pool to be idle
public WaitForIdle ( int millisecondsTimeout ) : bool
millisecondsTimeout int
return bool

WorkItemsGroup() public method

public WorkItemsGroup ( SmartThreadPool stp, int concurrency, WIGStartInfo wigStartInfo ) : System
stp SmartThreadPool
concurrency int
wigStartInfo WIGStartInfo
return System