| Mixe for Privacy and Anonymity in the Internet
    | 
#include <CAConditionVariable.hpp>
| Public Member Functions | |
| CAConditionVariable () | |
| ~CAConditionVariable () | |
| SINT32 | wait () | 
| Waits for a signal or for a timeout.  More... | |
| SINT32 | wait (CAMutex &oMutex) | 
| Very ugly shortly to be deleted, uncommented function!  More... | |
| SINT32 | wait (CAMutex *pMutex) | 
| Very ugly shortly to be deleted, uncommented function!  More... | |
| SINT32 | wait (UINT32 msTimeout) | 
| Waits for a signal or for a timeout.  More... | |
| SINT32 | signal () | 
| Signals this object.  More... | |
| SINT32 | broadcast () | 
| Signals this object.  More... | |
|  Public Member Functions inherited from CAMutex | |
| CAMutex () | |
| virtual | ~CAMutex () | 
| SINT32 | lock () | 
| SINT32 | unlock () | 
| Private Attributes | |
| CAMutex * | m_pMutex | 
| CASemaphore * | m_pSemaphore | 
| UINT32 | m_iSleepers | 
| Additional Inherited Members | |
|  Protected Attributes inherited from CAMutex | |
| CASemaphore * | m_pMutex | 
Definition at line 36 of file CAConditionVariable.hpp.
| 
 | inline | 
Definition at line 39 of file CAConditionVariable.hpp.
References CAMutex::CAMutex(), m_iSleepers, m_pMutex, and m_pSemaphore.
| 
 | inline | 
| 
 | inline | 
Signals this object.
All threads waiting on this object will awake. Note: lock() must be called before broadcast() and unlock() must be called if proccessing ends.
Definition at line 180 of file CAConditionVariable.hpp.
References E_SUCCESS, E_UNKNOWN, CAMutex::lock(), m_iSleepers, m_pMutex, m_pSemaphore, and CAMutex::unlock().
Referenced by CAThreadPool::addRequest(), CAThreadPool::destroy(), and CAAccountingDBInterface::releaseConnection().
| 
 | inline | 
Signals this object.
One of the threads waiting on this object will awake. Note: lock() must be called before signal() and unlock() must be called if proccessing ends.
Definition at line 159 of file CAConditionVariable.hpp.
References E_SUCCESS, E_UNKNOWN, CAMutex::lock(), m_iSleepers, m_pMutex, m_pSemaphore, and CAMutex::unlock().
Referenced by CAAccountingInstance::__newSettlementTransaction(), CAQueue::add(), CAQueue::close(), CAFirstMixChannelList::remove(), CAAccountingSettleThread::settle(), CAAccountingInstance::settlementTransaction(), CAInfoService::signal(), CAInfoService::stop(), and CALockAble::unlock().
| 
 | inline | 
Waits for a signal or for a timeout.
Note: lock() must be called before wait() and unlock() must be called if proccessing ends.
| E_SUCCESS | if signaled | 
| E_UNKNOWN | if an error occured | 
Definition at line 71 of file CAConditionVariable.hpp.
References E_SUCCESS, E_UNKNOWN, CAMutex::lock(), m_iSleepers, m_pMutex, m_pSemaphore, and CAMutex::unlock().
Referenced by CAAccountingInstance::__newSettlementTransaction(), CAThreadPool::addRequest(), CAThreadPool::destroy(), CAAccountingDBInterface::getConnection(), CAQueue::getOrWait(), CAAccountingInstance::handleChallengeResponse_internal(), CAInfoService::InfoLoop(), CAAccountingSettleThread::mainLoop(), CAAccountingInstance::settlementTransaction(), wait(), and CALockAble::waitForDestroy().
Very ugly shortly to be deleted, uncommented function!
Definition at line 89 of file CAConditionVariable.hpp.
References E_SUCCESS, E_UNKNOWN, CAMutex::lock(), m_iSleepers, m_pMutex, CAMutex::m_pMutex, m_pSemaphore, and CAMutex::unlock().
Very ugly shortly to be deleted, uncommented function!
Definition at line 107 of file CAConditionVariable.hpp.
References E_SUCCESS, E_UNKNOWN, CAMutex::lock(), m_iSleepers, m_pMutex, CAMutex::m_pMutex, m_pSemaphore, and CAMutex::unlock().
Waits for a signal or for a timeout.
Note: lock() must be called before wait() and unlock() must be called if proccessing ends.
| msTimeout | timout value in millis seconds | 
| E_SUCCESS | if signaled | 
| E_TIMEDOUT | if timout was reached | 
| E_UNKNOWN | if an error occured | 
Definition at line 131 of file CAConditionVariable.hpp.
References E_SUCCESS, E_TIMEDOUT, E_UNKNOWN, getcurrentTime(), m_pMutex, and wait().
| 
 | private | 
Definition at line 203 of file CAConditionVariable.hpp.
Referenced by broadcast(), CAConditionVariable(), signal(), and wait().
| 
 | private | 
Definition at line 201 of file CAConditionVariable.hpp.
Referenced by broadcast(), CAConditionVariable(), signal(), wait(), and ~CAConditionVariable().
| 
 | private | 
Definition at line 202 of file CAConditionVariable.hpp.
Referenced by broadcast(), CAConditionVariable(), signal(), wait(), and ~CAConditionVariable().