C# Class NUnit.Framework.Internal.WorkItems.CountdownEvent

A simplified implementation of .NET 4 CountdownEvent for use in earlier versions of .NET. Only the methods used by NUnit are implemented.
Exibir arquivo Open project: pjcollins/Andr.Unit

Public Methods

Method Description
CountdownEvent ( int initialCount ) : System.Threading

Construct a CountdownEvent

Signal ( ) : void

Decrement the count by one

Wait ( ) : void

Block the thread until the count reaches zero

Method Details

CountdownEvent() public method

Construct a CountdownEvent
public CountdownEvent ( int initialCount ) : System.Threading
initialCount int The initial count
return System.Threading

Signal() public method

Decrement the count by one
public Signal ( ) : void
return void

Wait() public method

Block the thread until the count reaches zero
public Wait ( ) : void
return void