C# Класс Apache.NMS.Util.CountDownLatch

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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