C# Class IServiceOriented.ServiceBus.Threading.CountdownLatch

Used for countdown events. When the count reaches zero, the event will be set.
Inheritance: IDisposable
Mostrar archivo Open project: jezell/iserviceoriented Class Usage Examples

Public Methods

Method Description
CountdownLatch ( int count ) : System
Dispose ( ) : void
Reset ( int count ) : void

Reset the count and set the event to non signalled.

Tick ( ) : int

Decrement the count. Set the event to signalled if the count is zero;

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

CountdownLatch() public method

public CountdownLatch ( int count ) : System
count int
return System

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Reset() public method

Reset the count and set the event to non signalled.
public Reset ( int count ) : void
count int
return void

Tick() public method

Decrement the count. Set the event to signalled if the count is zero;
public Tick ( ) : int
return int