C# Class DotNetWorkQueue.TaskScheduling.WaitForEventOrCancelThreadPool

Allows a scheduler to indicate that it's full and cannot accept more work
Inheritance: IWaitForEventOrCancelThreadPool
Afficher le fichier Open project: blehnen/DotNetWorkQueue

Méthodes publiques

Méthode Description
Cancel ( ) : void

Cancels any current Wait calls

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Reset ( IWorkGroup group ) : void

Resets the wait status, causing Wait calls to wait.

Set ( IWorkGroup group ) : void

Sets the state to signaled; any Wait calls will return

Wait ( IWorkGroup group ) : bool

Waits until notified to stop waiting.

WaitForEventOrCancelThreadPool ( IWaitForEventOrCancelFactory waitForEventOrCancelFactory ) : System

Initializes a new instance of the WaitForEventOrCancelThreadPool class.

Méthodes protégées

Méthode Description
ThrowIfDisposed ( [ name = "" ) : void

Throws an exception if this instance has been disposed.

Private Methods

Méthode Description
TryAdd ( IWorkGroup group ) : void

Tries to add a new work group to the collection

Will gracefully handle another thread adding the group

Method Details

Cancel() public méthode

Cancels any current Wait calls
public Cancel ( ) : void
Résultat void

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

Reset() public méthode

Resets the wait status, causing Wait calls to wait.
public Reset ( IWorkGroup group ) : void
group IWorkGroup The group.
Résultat void

Set() public méthode

Sets the state to signaled; any Wait calls will return
public Set ( IWorkGroup group ) : void
group IWorkGroup The group.
Résultat void

ThrowIfDisposed() protected méthode

Throws an exception if this instance has been disposed.
protected ThrowIfDisposed ( [ name = "" ) : void
name [ The name.
Résultat void

Wait() public méthode

Waits until notified to stop waiting.
public Wait ( IWorkGroup group ) : bool
group IWorkGroup The group.
Résultat bool

WaitForEventOrCancelThreadPool() public méthode

Initializes a new instance of the WaitForEventOrCancelThreadPool class.
public WaitForEventOrCancelThreadPool ( IWaitForEventOrCancelFactory waitForEventOrCancelFactory ) : System
waitForEventOrCancelFactory IWaitForEventOrCancelFactory The wait for event or cancel factory.
Résultat System