blocxx
|
#include <ThreadCounter.hpp>
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 &) | |
ThreadCounter & | operator= (ThreadCounter const &) |
Private Attributes | |
Int32 | m_maxThreads |
Int32 | m_runCount |
NonRecursiveMutex | m_runCountGuard |
Condition | m_runCountCondition |
Definition at line 54 of file ThreadCounter.hpp.
usr src packages BUILD blocxx src blocxx ThreadCounter cpp BLOCXX_NAMESPACE::ThreadCounter::ThreadCounter | ( | Int32 | maxThreads | ) |
Definition at line 49 of file ThreadCounter.cpp.
BLOCXX_NAMESPACE::ThreadCounter::~ThreadCounter | ( | ) |
Definition at line 53 of file ThreadCounter.cpp.
BLOCXX_NAMESPACE::ThreadCounter::ThreadCounter | ( | ThreadCounter const & | ) | [private] |
void BLOCXX_NAMESPACE::ThreadCounter::decThreadCount | ( | ) |
Definition at line 74 of file ThreadCounter.cpp.
References BLOCXX_ASSERT, m_runCount, m_runCountCondition, m_runCountGuard, and BLOCXX_NAMESPACE::Condition::notifyAll().
Int32 BLOCXX_NAMESPACE::ThreadCounter::getThreadCount | ( | ) |
Definition at line 82 of file ThreadCounter.cpp.
References m_runCount, and m_runCountGuard.
void BLOCXX_NAMESPACE::ThreadCounter::incThreadCount | ( | UInt32 | sTimeout, |
UInt32 | usTimeout | ||
) |
Definition at line 56 of file ThreadCounter.cpp.
References incThreadCount(), and BLOCXX_NAMESPACE::Timeout::relative().
void BLOCXX_NAMESPACE::ThreadCounter::incThreadCount | ( | const Timeout & | timeout | ) |
Definition at line 61 of file ThreadCounter.cpp.
References BLOCXX_THROW, m_maxThreads, m_runCount, m_runCountCondition, m_runCountGuard, and BLOCXX_NAMESPACE::Condition::timedWait().
Referenced by incThreadCount().
ThreadCounter& BLOCXX_NAMESPACE::ThreadCounter::operator= | ( | ThreadCounter const & | ) | [private] |
void BLOCXX_NAMESPACE::ThreadCounter::setMax | ( | Int32 | maxThreads | ) |
Definition at line 106 of file ThreadCounter.cpp.
References m_maxThreads, m_runCountCondition, m_runCountGuard, and BLOCXX_NAMESPACE::Condition::notifyAll().
void BLOCXX_NAMESPACE::ThreadCounter::waitForAll | ( | UInt32 | sTimeout, |
UInt32 | usTimeout | ||
) |
Definition at line 88 of file ThreadCounter.cpp.
References BLOCXX_NAMESPACE::Timeout::relative(), and waitForAll().
void BLOCXX_NAMESPACE::ThreadCounter::waitForAll | ( | const Timeout & | timeout | ) |
Definition at line 94 of file ThreadCounter.cpp.
References BLOCXX_THROW, m_runCount, m_runCountCondition, m_runCountGuard, and BLOCXX_NAMESPACE::Condition::timedWait().
Referenced by waitForAll().
Int32 BLOCXX_NAMESPACE::ThreadCounter::m_maxThreads [private] |
Definition at line 69 of file ThreadCounter.hpp.
Referenced by incThreadCount(), and setMax().
Int32 BLOCXX_NAMESPACE::ThreadCounter::m_runCount [private] |
Definition at line 70 of file ThreadCounter.hpp.
Referenced by decThreadCount(), getThreadCount(), incThreadCount(), and waitForAll().
Definition at line 72 of file ThreadCounter.hpp.
Referenced by decThreadCount(), incThreadCount(), setMax(), and waitForAll().
Definition at line 71 of file ThreadCounter.hpp.
Referenced by decThreadCount(), getThreadCount(), incThreadCount(), setMax(), and waitForAll().