#include <OW_NonRecursiveMutex.hpp>
Collaboration diagram for OW_NAMESPACE::NonRecursiveMutex:
Public Member Functions | |
NonRecursiveMutex () | |
Create a new NonRecursiveMutex object. | |
~NonRecursiveMutex () | |
Destroy this NonRecursiveMutex object. | |
void | acquire () |
Acquire ownership of this NonRecursiveMutex object. | |
bool | release () |
Release ownership of this NonRecursiveMutex object. | |
Private Member Functions | |
NonRecursiveMutex (const NonRecursiveMutex &) | |
NonRecursiveMutex & | operator= (const NonRecursiveMutex &) |
void | conditionPreWait (NonRecursiveMutexLockState &state) |
void | conditionPostWait (NonRecursiveMutexLockState &state) |
Private Attributes | |
NonRecursiveMutex_t | m_mutex |
Friends | |
class | Condition |
Definition at line 45 of file OW_NonRecursiveMutex.hpp.
|
Create a new NonRecursiveMutex object.
Definition at line 50 of file OW_NonRecursiveMutex.cpp. References OW_NAMESPACE::NonRecursiveMutexImpl::createMutex(), m_mutex, and OW_THROW. |
|
Destroy this NonRecursiveMutex object.
Definition at line 57 of file OW_NonRecursiveMutex.cpp. References OW_NAMESPACE::MutexImpl::destroyMutex(), OW_NAMESPACE::NonRecursiveMutexImpl::destroyMutex(), m_mutex, and OW_NAMESPACE::MutexImpl::releaseMutex(). |
|
|
|
Acquire ownership of this NonRecursiveMutex object. This call will block if another thread has ownership of this NonRecursiveMutex. When it returns, the current thread will be the owner of this NonRecursiveMutex object. If this thread is the owner of the mutex, then an Deadlock exception will be thrown. Definition at line 66 of file OW_NonRecursiveMutex.cpp. References OW_NAMESPACE::MutexImpl::acquireMutex(), m_mutex, and OW_THROW. |
|
Definition at line 94 of file OW_NonRecursiveMutex.cpp. References OW_NAMESPACE::NonRecursiveMutexImpl::conditionPostWait(), m_mutex, OW_THROW, and state. Referenced by OW_NAMESPACE::Condition::doTimedWait(), and OW_NAMESPACE::Condition::doWait(). |
|
Definition at line 86 of file OW_NonRecursiveMutex.cpp. References OW_NAMESPACE::NonRecursiveMutexImpl::conditionPreWait(), m_mutex, OW_THROW, and state. Referenced by OW_NAMESPACE::Condition::doTimedWait(), and OW_NAMESPACE::Condition::doWait(). |
|
|
|
Release ownership of this NonRecursiveMutex object. If another thread is waiting to acquire the ownership of this mutex it will stop blocking and acquire ownership when this call returns. Definition at line 76 of file OW_NonRecursiveMutex.cpp. References m_mutex, OW_THROW, and OW_NAMESPACE::MutexImpl::releaseMutex(). |
|
Definition at line 76 of file OW_NonRecursiveMutex.hpp. |
|
Definition at line 72 of file OW_NonRecursiveMutex.hpp. Referenced by acquire(), conditionPostWait(), conditionPreWait(), NonRecursiveMutex(), release(), and ~NonRecursiveMutex(). |