C# Class Apache.NMS.Util.CountDownLatch

Datei anzeigen Open project: ThorTech/apache-nms Class Usage Examples

Public Methods

Method 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 method

public CountDownLatch ( int i ) : System
i int
return System

await() public method

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
return bool

await() public method

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

countDown() public method

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