C# Класс DotNetWorkQueue.TaskScheduling.WaitForEventOrCancelThreadPool

Allows a scheduler to indicate that it's full and cannot accept more work
Наследование: IWaitForEventOrCancelThreadPool
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
ThrowIfDisposed ( [ name = "" ) : void

Throws an exception if this instance has been disposed.

Приватные методы

Метод Описание
TryAdd ( IWorkGroup group ) : void

Tries to add a new work group to the collection

Will gracefully handle another thread adding the group

Описание методов

Cancel() публичный Метод

Cancels any current Wait calls
public Cancel ( ) : void
Результат void

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

Reset() публичный Метод

Resets the wait status, causing Wait calls to wait.
public Reset ( IWorkGroup group ) : void
group IWorkGroup The group.
Результат void

Set() публичный Метод

Sets the state to signaled; any Wait calls will return
public Set ( IWorkGroup group ) : void
group IWorkGroup The group.
Результат void

ThrowIfDisposed() защищенный Метод

Throws an exception if this instance has been disposed.
protected ThrowIfDisposed ( [ name = "" ) : void
name [ The name.
Результат void

Wait() публичный Метод

Waits until notified to stop waiting.
public Wait ( IWorkGroup group ) : bool
group IWorkGroup The group.
Результат bool

WaitForEventOrCancelThreadPool() публичный Метод

Initializes a new instance of the WaitForEventOrCancelThreadPool class.
public WaitForEventOrCancelThreadPool ( IWaitForEventOrCancelFactory waitForEventOrCancelFactory ) : System
waitForEventOrCancelFactory IWaitForEventOrCancelFactory The wait for event or cancel factory.
Результат System