IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Framework.Internal.Execution.CountdownEvent Class Reference

A simplified implementation of .NET 4 CountdownEvent for use in earlier versions of .NET. Only the methods used by NUnit are implemented. More...

Public Member Functions

 CountdownEvent (int initialCount)
 Construct a CountdownEvent More...
 
void Signal ()
 Decrement the count by one More...
 
void Wait ()
 Block the thread until the count reaches zero More...
 

Properties

int InitialCount [get]
 Gets the initial count established for the CountdownEvent More...
 
int CurrentCount [get]
 Gets the current count remaining for the CountdownEvent More...
 

Private Attributes

int _initialCount
 
int _remainingCount
 
object _lock = new object()
 
ManualResetEvent _event = new ManualResetEvent(false)
 

Detailed Description

A simplified implementation of .NET 4 CountdownEvent for use in earlier versions of .NET. Only the methods used by NUnit are implemented.

Constructor & Destructor Documentation

NUnit.Framework.Internal.Execution.CountdownEvent.CountdownEvent ( int  initialCount)
inline

Construct a CountdownEvent

Parameters
initialCountThe initial count

Member Function Documentation

void NUnit.Framework.Internal.Execution.CountdownEvent.Signal ( )
inline
void NUnit.Framework.Internal.Execution.CountdownEvent.Wait ( )
inline

Block the thread until the count reaches zero

Member Data Documentation

int NUnit.Framework.Internal.Execution.CountdownEvent._initialCount
private
int NUnit.Framework.Internal.Execution.CountdownEvent._remainingCount
private
object NUnit.Framework.Internal.Execution.CountdownEvent._lock = new object()
private
ManualResetEvent NUnit.Framework.Internal.Execution.CountdownEvent._event = new ManualResetEvent(false)
private

Property Documentation

int NUnit.Framework.Internal.Execution.CountdownEvent.InitialCount
get

Gets the initial count established for the CountdownEvent

int NUnit.Framework.Internal.Execution.CountdownEvent.CurrentCount
get

Gets the current count remaining for the CountdownEvent

Referenced by NUnit.Framework.Internal.Execution.CompositeWorkItem.CountDownChildTest().


The documentation for this class was generated from the following file: