#include <OW_Condition.hpp>
Public Member Functions | |
Condition () | |
~Condition () | |
void | notifyOne () |
void | notifyAll () |
void | wait (NonRecursiveMutexLock &lock) |
Atomically unlocks the mutex and waits for the condition variable to be notified. | |
bool | timedWait (NonRecursiveMutexLock &lock, UInt32 sTimeout, UInt32 usTimeout=0) |
Acquire ownership of this Mutex object. | |
Private Member Functions | |
Condition (const Condition &) | |
Condition & | operator= (const Condition &) |
void | doWait (NonRecursiveMutex &mutex) |
bool | doTimedWait (NonRecursiveMutex &mutex, UInt32 sTimeout, UInt32 usTimeout) |
Private Attributes | |
ConditionVar_t | m_condition |
Definition at line 48 of file OW_Condition.hpp.
|
Definition at line 52 of file OW_Condition.cpp. References m_condition, and OW_THROW. |
|
Definition at line 61 of file OW_Condition.cpp. References m_condition. |
|
|
|
Definition at line 93 of file OW_Condition.cpp. References OW_NAMESPACE::NonRecursiveMutex::conditionPostWait(), OW_NAMESPACE::NonRecursiveMutex::conditionPreWait(), ETIMEDOUT, m_condition, and state. |
|
Definition at line 82 of file OW_Condition.cpp. References OW_NAMESPACE::NonRecursiveMutex::conditionPostWait(), OW_NAMESPACE::NonRecursiveMutex::conditionPreWait(), m_condition, and state. |
|
|
Definition at line 68 of file OW_Condition.cpp. References m_condition. Referenced by OW_NAMESPACE::RWLocker::doWakeups(), OW_NAMESPACE::IndicationServerImplThread::processIndication(), and OW_NAMESPACE::PollingManagerThread::TriggerRunner::run(). |
|
|
|
Acquire ownership of this Mutex object. This call will block if another thread has ownership of this Mutex. When it returns, the current thread will be the owner of this Mutex object.
Definition at line 259 of file OW_Condition.cpp. References OW_NAMESPACE::NonRecursiveMutexLock::isLocked(), and OW_THROW. Referenced by OW_NAMESPACE::Thread::definitiveCancel(), OW_NAMESPACE::RWLocker::getReadLock(), OW_NAMESPACE::ThreadCounter::incThreadCount(), OW_NAMESPACE::Semaphore::timedWait(), and OW_NAMESPACE::ThreadCounter::waitForAll(). |
|
Atomically unlocks the mutex and waits for the condition variable to be notified. The thread execution is suspended and does not consume any CPU time until the condition variable is notified. The mutex lock must be locked by the calling thread on entrance to wait. Before returning to the calling thread, wait re-acquires the mutex lock. This function should always be called within a while loop that checks the condition. Definition at line 249 of file OW_Condition.cpp. References OW_NAMESPACE::NonRecursiveMutexLock::isLocked(), and OW_THROW. Referenced by OW_NAMESPACE::IndicationServerImplThread::run(), OW_NAMESPACE::Semaphore::wait(), and OW_NAMESPACE::CppProviderIFC::CppProviderInitializationHelper::waitUntilInitialized(). |
|
Definition at line 85 of file OW_Condition.hpp. Referenced by Condition(), doTimedWait(), doWait(), notifyAll(), notifyOne(), and ~Condition(). |