C# Class Amib.Threading.Internal.WorkItemsGroup

Inheritance: WorkItemsGroupBase
Afficher le fichier Open project: amibar/SmartThreadPool Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Cancel ( bool abortExecution ) : void
abortExecution bool
Résultat void

EnqueueToSTPNextNWorkItem() public méthode

public EnqueueToSTPNextNWorkItem ( int count ) : void
count int
Résultat void

GetStates() public méthode

public GetStates ( ) : object[]
Résultat object[]

OnSTPIsStarting() public méthode

public OnSTPIsStarting ( ) : void
Résultat void

Start() public méthode

Start the Work Items Group if it was started suspended
public Start ( ) : void
Résultat void

WaitForIdle() public méthode

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

WorkItemsGroup() public méthode

public WorkItemsGroup ( SmartThreadPool stp, int concurrency, WIGStartInfo wigStartInfo ) : System
stp SmartThreadPool
concurrency int
wigStartInfo WIGStartInfo
Résultat System