|
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 |
Additional Inherited Members | |
Protected Member Functions inherited from BLOCXX_NAMESPACE::IntrusiveCountableBase | |
| IntrusiveCountableBase () | |
| IntrusiveCountableBase (const IntrusiveCountableBase &) | |
| IntrusiveCountableBase & | operator= (const IntrusiveCountableBase &) |
| virtual | ~IntrusiveCountableBase () |
Definition at line 54 of file ThreadCounter.hpp.
| BLOCXX_NAMESPACE::ThreadCounter::ThreadCounter | ( | Int32 | maxThreads | ) |
Definition at line 48 of file ThreadCounter.cpp.
| BLOCXX_NAMESPACE::ThreadCounter::~ThreadCounter | ( | ) |
Definition at line 52 of file ThreadCounter.cpp.
|
private |
| void BLOCXX_NAMESPACE::ThreadCounter::decThreadCount | ( | ) |
Definition at line 73 of file ThreadCounter.cpp.
References BLOCXX_ASSERT, m_runCount, m_runCountCondition, m_runCountGuard, BLOCXX_NAMESPACE::Condition::notifyAll(), and BLOCXX_NAMESPACE::operator==().
Referenced by BLOCXX_NAMESPACE::ThreadCountDecrementer::doNotifyThreadDone().
| Int32 BLOCXX_NAMESPACE::ThreadCounter::getThreadCount | ( | ) |
Definition at line 81 of file ThreadCounter.cpp.
References m_runCount, m_runCountGuard, and BLOCXX_NAMESPACE::operator==().
Definition at line 60 of file ThreadCounter.cpp.
References BLOCXX_THROW, m_maxThreads, m_runCount, m_runCountCondition, m_runCountGuard, BLOCXX_NAMESPACE::operator==(), and BLOCXX_NAMESPACE::Condition::timedWait().
Referenced by incThreadCount().
Definition at line 55 of file ThreadCounter.cpp.
References incThreadCount(), BLOCXX_NAMESPACE::operator==(), and BLOCXX_NAMESPACE::Timeout::relative().
|
private |
Definition at line 105 of file ThreadCounter.cpp.
References m_maxThreads, m_runCountCondition, m_runCountGuard, BLOCXX_NAMESPACE::Condition::notifyAll(), and BLOCXX_NAMESPACE::operator==().
Definition at line 93 of file ThreadCounter.cpp.
References BLOCXX_THROW, m_runCount, m_runCountCondition, m_runCountGuard, BLOCXX_NAMESPACE::operator==(), and BLOCXX_NAMESPACE::Condition::timedWait().
Referenced by waitForAll().
Definition at line 87 of file ThreadCounter.cpp.
References BLOCXX_NAMESPACE::operator==(), BLOCXX_NAMESPACE::Timeout::relative(), and waitForAll().
|
private |
Definition at line 69 of file ThreadCounter.hpp.
Referenced by incThreadCount(), and setMax().
|
private |
Definition at line 70 of file ThreadCounter.hpp.
Referenced by decThreadCount(), getThreadCount(), incThreadCount(), and waitForAll().
|
private |
Definition at line 72 of file ThreadCounter.hpp.
Referenced by decThreadCount(), incThreadCount(), setMax(), and waitForAll().
|
private |
Definition at line 71 of file ThreadCounter.hpp.
Referenced by decThreadCount(), getThreadCount(), incThreadCount(), setMax(), and waitForAll().