BLOCXX_NAMESPACE::ThreadCounter Class Reference

#include <ThreadCounter.hpp>

Inheritance diagram for BLOCXX_NAMESPACE::ThreadCounter:
BLOCXX_NAMESPACE::IntrusiveCountableBase

List of all members.

Public Member Functions

 ThreadCounter (Int32 maxThreads)
 ~ThreadCounter ()
void incThreadCount (const Timeout &timeout)
BLOCXX_DEPRECATED void incThreadCount (UInt32 sTimeout, UInt32 usTimeout)
void decThreadCount ()
Int32 getThreadCount ()
void waitForAll (const Timeout &timeout)
BLOCXX_DEPRECATED 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 54 of file ThreadCounter.hpp.


Constructor & Destructor Documentation

BLOCXX_NAMESPACE::ThreadCounter::ThreadCounter ( Int32  maxThreads  ) 

Definition at line 42 of file ThreadCounter.cpp.

Referenced by ~ThreadCounter().

BLOCXX_NAMESPACE::ThreadCounter::~ThreadCounter (  ) 

Definition at line 46 of file ThreadCounter.cpp.

References ThreadCounter().

BLOCXX_NAMESPACE::ThreadCounter::ThreadCounter ( ThreadCounter const &   )  [private]

Member Function Documentation

void BLOCXX_NAMESPACE::ThreadCounter::decThreadCount (  ) 

Definition at line 67 of file ThreadCounter.cpp.

Int32 BLOCXX_NAMESPACE::ThreadCounter::getThreadCount (  ) 

Definition at line 75 of file ThreadCounter.cpp.

void BLOCXX_NAMESPACE::ThreadCounter::incThreadCount ( UInt32  sTimeout,
UInt32  usTimeout 
)

Definition at line 49 of file ThreadCounter.cpp.

void BLOCXX_NAMESPACE::ThreadCounter::incThreadCount ( const Timeout timeout  ) 

Definition at line 54 of file ThreadCounter.cpp.

References BLOCXX_NAMESPACE::Timeout::relative().

ThreadCounter& BLOCXX_NAMESPACE::ThreadCounter::operator= ( ThreadCounter const &   )  [private]
void BLOCXX_NAMESPACE::ThreadCounter::setMax ( Int32  maxThreads  ) 

Definition at line 99 of file ThreadCounter.cpp.

References BLOCXX_THROW.

void BLOCXX_NAMESPACE::ThreadCounter::waitForAll ( UInt32  sTimeout,
UInt32  usTimeout 
)

Definition at line 81 of file ThreadCounter.cpp.

References m_runCount, and m_runCountGuard.

void BLOCXX_NAMESPACE::ThreadCounter::waitForAll ( const Timeout timeout  ) 

Definition at line 87 of file ThreadCounter.cpp.

References BLOCXX_NAMESPACE::Timeout::relative().


Member Data Documentation

Definition at line 69 of file ThreadCounter.hpp.

Definition at line 70 of file ThreadCounter.hpp.

Referenced by waitForAll().

Definition at line 72 of file ThreadCounter.hpp.


The documentation for this class was generated from the following files:
Generated on Mon Jul 5 20:00:00 2010 for blocxx by  doxygen 1.6.3