C# 클래스 DotNetWorkQueue.TaskScheduling.WaitForEventOrCancelThreadPool

Allows a scheduler to indicate that it's full and cannot accept more work
상속: IWaitForEventOrCancelThreadPool
파일 보기 프로젝트 열기: blehnen/DotNetWorkQueue

공개 메소드들

메소드 설명
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