C# 클래스 Apache.NMS.Util.CountDownLatch

파일 보기 프로젝트 열기: ThorTech/apache-nms 1 사용 예제들

공개 메소드들

메소드 설명
CountDownLatch ( int i ) : System
await ( System.TimeSpan timeout ) : bool

Causes the current thread to wait until the latch has counted down to zero, unless the thread is interrupted, or the specified waiting time elapses.

await ( ) : void

Causes the current Thread to wait for the count to reach zero, unless the Thread is interrupted.

countDown ( ) : void

Decrement the count, releasing any waiting Threads when the count reaches Zero.

메소드 상세

CountDownLatch() 공개 메소드

public CountDownLatch ( int i ) : System
i int
리턴 System

await() 공개 메소드

Causes the current thread to wait until the latch has counted down to zero, unless the thread is interrupted, or the specified waiting time elapses.
public await ( System.TimeSpan timeout ) : bool
timeout System.TimeSpan
리턴 bool

await() 공개 메소드

Causes the current Thread to wait for the count to reach zero, unless the Thread is interrupted.
public await ( ) : void
리턴 void

countDown() 공개 메소드

Decrement the count, releasing any waiting Threads when the count reaches Zero.
public countDown ( ) : void
리턴 void