#include <NonRecursiveMutex.hpp>
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 47 of file NonRecursiveMutex.hpp.
|
Create a new NonRecursiveMutex object.
Definition at line 52 of file NonRecursiveMutex.cpp. References BLOCXX_THROW, BLOCXX_NAMESPACE::NonRecursiveMutexImpl::createMutex(), and m_mutex. |
|
Destroy this NonRecursiveMutex object.
Definition at line 59 of file NonRecursiveMutex.cpp. References BLOCXX_NAMESPACE::MutexImpl::destroyMutex(), BLOCXX_NAMESPACE::NonRecursiveMutexImpl::destroyMutex(), m_mutex, and BLOCXX_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 68 of file NonRecursiveMutex.cpp. References BLOCXX_NAMESPACE::MutexImpl::acquireMutex(), BLOCXX_THROW, and m_mutex. |
|
Definition at line 96 of file NonRecursiveMutex.cpp. References BLOCXX_THROW, BLOCXX_NAMESPACE::NonRecursiveMutexImpl::conditionPostWait(), m_mutex, and state. Referenced by BLOCXX_NAMESPACE::Condition::doTimedWait(), and BLOCXX_NAMESPACE::Condition::doWait(). |
|
Definition at line 88 of file NonRecursiveMutex.cpp. References BLOCXX_THROW, BLOCXX_NAMESPACE::NonRecursiveMutexImpl::conditionPreWait(), m_mutex, and state. Referenced by BLOCXX_NAMESPACE::Condition::doTimedWait(), and BLOCXX_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 78 of file NonRecursiveMutex.cpp. References BLOCXX_THROW, m_mutex, and BLOCXX_NAMESPACE::MutexImpl::releaseMutex(). |
|
Definition at line 78 of file NonRecursiveMutex.hpp. |
|
Definition at line 74 of file NonRecursiveMutex.hpp. Referenced by acquire(), conditionPostWait(), conditionPreWait(), NonRecursiveMutex(), release(), and ~NonRecursiveMutex(). |