C# 클래스 AGENT.Contrib.Util.ThreadUtil

파일 보기 프로젝트 열기: nothingmn/AGENT.Contrib

공개 메소드들

메소드 설명
SafeQueueWorkItem ( ThreadStart start ) : void

Queues an action into the threadpool

Start ( ThreadStart start ) : void

Starts a new thread with an action

비공개 메소드들

메소드 설명
ActionConsumer ( ) : void

Main body of a threadpool thread. Indefinitely wait until an action is queued. When an action is de-queued safely execute it

메소드 상세

SafeQueueWorkItem() 공개 정적인 메소드

Queues an action into the threadpool
public static SafeQueueWorkItem ( ThreadStart start ) : void
start ThreadStart
리턴 void

Start() 공개 정적인 메소드

Starts a new thread with an action
public static Start ( ThreadStart start ) : void
start ThreadStart
리턴 void