C# 클래스 Amib.Threading.Internal.WorkItemsQueue

WorkItemsQueue class.
상속: IDisposable
파일 보기 프로젝트 열기: SQLServerIO/TPCCBench 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GetThreadWaiterEntry WaiterEntry
PopWaiter WaiterEntry
RemoveWaiter void
ValidateNotDisposed void

공개 메소드들

메소드 설명
DequeueWorkItem ( int millisecondsTimeout, WaitHandle cancelEvent ) : WorkItem

Waits for a work item or exits on timeout or cancel

Dispose ( ) : void
EnqueueWorkItem ( WorkItem workItem ) : bool

Enqueue a work item to the queue.

PushWaiter ( WaiterEntry newWaiterEntry ) : void

Push a new waiter into the waiter's stack

보호된 메소드들

메소드 설명
Cleanup ( ) : void

Cleanup the work items queue, hence no more work items are allowed to be queue

비공개 메소드들

메소드 설명
GetThreadWaiterEntry ( ) : WaiterEntry

Returns the WaiterEntry of the current thread

PopWaiter ( ) : WaiterEntry

Pop a waiter from the waiter's stack

RemoveWaiter ( WaiterEntry waiterEntry, bool popDecrement ) : void

Remove a waiter from the stack

ValidateNotDisposed ( ) : void

메소드 상세

Cleanup() 보호된 메소드

Cleanup the work items queue, hence no more work items are allowed to be queue
protected Cleanup ( ) : void
리턴 void

DequeueWorkItem() 공개 메소드

Waits for a work item or exits on timeout or cancel
public DequeueWorkItem ( int millisecondsTimeout, WaitHandle cancelEvent ) : WorkItem
millisecondsTimeout int Timeout in milliseconds
cancelEvent System.Threading.WaitHandle Cancel wait handle
리턴 WorkItem

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

EnqueueWorkItem() 공개 메소드

Enqueue a work item to the queue.
public EnqueueWorkItem ( WorkItem workItem ) : bool
workItem WorkItem
리턴 bool

PushWaiter() 공개 메소드

Push a new waiter into the waiter's stack
public PushWaiter ( WaiterEntry newWaiterEntry ) : void
newWaiterEntry WaiterEntry A waiter to put in the stack
리턴 void