C# 클래스 Subtext.Framework.Threading.ManagedThreadPool

Managed thread pool.
파일 보기 프로젝트 열기: ayende/Subtext

공개 메소드들

메소드 설명
EmptyQueue ( ) : void

Empties the work queue of any queued work items.

QueueUserWorkItem ( WaitCallback callback ) : void

Queues a user work item to the thread pool.

QueueUserWorkItem ( WaitCallback callback, object state ) : void

Queues a user work item to the thread pool.

비공개 메소드들

메소드 설명
ManagedThreadPool ( ) : System

Initialize the thread pool.

ProcessQueuedItems ( ) : void

A thread worker function that processes items from the work queue.

메소드 상세

EmptyQueue() 공개 정적인 메소드

Empties the work queue of any queued work items.
public static EmptyQueue ( ) : void
리턴 void

QueueUserWorkItem() 공개 정적인 메소드

Queues a user work item to the thread pool.
public static QueueUserWorkItem ( WaitCallback callback ) : void
callback WaitCallback /// A WaitCallback representing the delegate to invoke when the thread in the /// thread pool picks up the work item. ///
리턴 void

QueueUserWorkItem() 공개 정적인 메소드

Queues a user work item to the thread pool.
public static QueueUserWorkItem ( WaitCallback callback, object state ) : void
callback WaitCallback /// A WaitCallback representing the delegate to invoke when the thread in the /// thread pool picks up the work item. ///
state object /// The object that is passed to the delegate when serviced from the thread pool. ///
리턴 void