OW_NAMESPACE::ThreadCounter Class Reference

#include <OW_ThreadCounter.hpp>

Inheritance diagram for OW_NAMESPACE::ThreadCounter:

Inheritance graph
[legend]
Collaboration diagram for OW_NAMESPACE::ThreadCounter:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ThreadCounter (Int32 maxThreads)
 ~ThreadCounter ()
void incThreadCount (UInt32 sTimeout, UInt32 usTimeout)
void decThreadCount ()
Int32 getThreadCount ()
void waitForAll (UInt32 sTimeout, UInt32 usTimeout)
void setMax (Int32 maxThreads)

Private Member Functions

 ThreadCounter (ThreadCounter const &)
ThreadCounteroperator= (ThreadCounter const &)

Private Attributes

Int32 m_maxThreads
Int32 m_runCount
NonRecursiveMutex m_runCountGuard
Condition m_runCountCondition

Detailed Description

Definition at line 51 of file OW_ThreadCounter.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::ThreadCounter::ThreadCounter Int32  maxThreads  ) 
 

Definition at line 44 of file OW_ThreadCounter.cpp.

OW_NAMESPACE::ThreadCounter::~ThreadCounter  ) 
 

Definition at line 48 of file OW_ThreadCounter.cpp.

OW_NAMESPACE::ThreadCounter::ThreadCounter ThreadCounter const &   )  [private]
 


Member Function Documentation

void OW_NAMESPACE::ThreadCounter::decThreadCount  ) 
 

Definition at line 64 of file OW_ThreadCounter.cpp.

References m_runCount, m_runCountCondition, m_runCountGuard, OW_NAMESPACE::Condition::notifyAll(), and OW_ASSERT.

Int32 OW_NAMESPACE::ThreadCounter::getThreadCount  ) 
 

Definition at line 72 of file OW_ThreadCounter.cpp.

References m_runCount, and m_runCountGuard.

void OW_NAMESPACE::ThreadCounter::incThreadCount UInt32  sTimeout,
UInt32  usTimeout
 

Definition at line 51 of file OW_ThreadCounter.cpp.

References m_maxThreads, m_runCount, m_runCountCondition, m_runCountGuard, OW_THROW, and OW_NAMESPACE::Condition::timedWait().

ThreadCounter& OW_NAMESPACE::ThreadCounter::operator= ThreadCounter const &   )  [private]
 

void OW_NAMESPACE::ThreadCounter::setMax Int32  maxThreads  ) 
 

Definition at line 90 of file OW_ThreadCounter.cpp.

References m_maxThreads, m_runCountCondition, m_runCountGuard, and OW_NAMESPACE::Condition::notifyAll().

void OW_NAMESPACE::ThreadCounter::waitForAll UInt32  sTimeout,
UInt32  usTimeout
 

Definition at line 78 of file OW_ThreadCounter.cpp.

References m_runCount, m_runCountCondition, m_runCountGuard, OW_THROW, and OW_NAMESPACE::Condition::timedWait().


Member Data Documentation

Int32 OW_NAMESPACE::ThreadCounter::m_maxThreads [private]
 

Definition at line 64 of file OW_ThreadCounter.hpp.

Referenced by incThreadCount(), and setMax().

Int32 OW_NAMESPACE::ThreadCounter::m_runCount [private]
 

Definition at line 65 of file OW_ThreadCounter.hpp.

Referenced by decThreadCount(), getThreadCount(), incThreadCount(), and waitForAll().

Condition OW_NAMESPACE::ThreadCounter::m_runCountCondition [private]
 

Definition at line 67 of file OW_ThreadCounter.hpp.

Referenced by decThreadCount(), incThreadCount(), setMax(), and waitForAll().

NonRecursiveMutex OW_NAMESPACE::ThreadCounter::m_runCountGuard [private]
 

Definition at line 66 of file OW_ThreadCounter.hpp.

Referenced by decThreadCount(), getThreadCount(), incThreadCount(), setMax(), and waitForAll().


The documentation for this class was generated from the following files:
Generated on Thu Feb 9 09:14:43 2006 for openwbem by  doxygen 1.4.6