C# Class Apache.NMS.Util.CountDownLatch

Afficher le fichier Open project: ThorTech/apache-nms Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

CountDownLatch() public méthode

public CountDownLatch ( int i ) : System
i int
Résultat System

await() public méthode

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
Résultat bool

await() public méthode

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

countDown() public méthode

Decrement the count, releasing any waiting Threads when the count reaches Zero.
public countDown ( ) : void
Résultat void