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.
Afficher le fichier Open project: pjcollins/Andr.Unit

Méthodes publiques

Méthode 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 méthode

Construct a CountdownEvent
public CountdownEvent ( int initialCount ) : System.Threading
initialCount int The initial count
Résultat System.Threading

Signal() public méthode

Decrement the count by one
public Signal ( ) : void
Résultat void

Wait() public méthode

Block the thread until the count reaches zero
public Wait ( ) : void
Résultat void