blocxx
|
Note that descriptions of what exceptions may be thrown assumes that object is used correctly, i.e., method preconditions are satisfied. More...
#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 |
Note that descriptions of what exceptions may be thrown assumes that object is used correctly, i.e., method preconditions are satisfied.
Definition at line 52 of file NonRecursiveMutex.hpp.
BLOCXX_NAMESPACE::NonRecursiveMutex::NonRecursiveMutex | ( | ) |
Create a new NonRecursiveMutex object.
Exception | if needed system resources exhausted |
Definition at line 53 of file NonRecursiveMutex.cpp.
References BLOCXX_THROW, BLOCXX_NAMESPACE::NonRecursiveMutexImpl::createMutex(), and m_mutex.
BLOCXX_NAMESPACE::NonRecursiveMutex::~NonRecursiveMutex | ( | ) |
Destroy this NonRecursiveMutex object.
Definition at line 60 of file NonRecursiveMutex.cpp.
References BLOCXX_NAMESPACE::NonRecursiveMutexImpl::destroyMutex(), m_mutex, and BLOCXX_NAMESPACE::NonRecursiveMutexImpl::releaseMutex().
|
private |
void BLOCXX_NAMESPACE::NonRecursiveMutex::acquire | ( | ) |
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.
no | exception |
Definition at line 69 of file NonRecursiveMutex.cpp.
References BLOCXX_NAMESPACE::NonRecursiveMutexImpl::acquireMutex(), BLOCXX_THROW, and m_mutex.
|
private |
no | exception |
Definition at line 97 of file NonRecursiveMutex.cpp.
References BLOCXX_THROW, BLOCXX_NAMESPACE::NonRecursiveMutexImpl::conditionPostWait(), m_mutex, and state.
|
private |
no | exception |
Definition at line 89 of file NonRecursiveMutex.cpp.
References BLOCXX_THROW, BLOCXX_NAMESPACE::NonRecursiveMutexImpl::conditionPreWait(), m_mutex, and state.
|
private |
bool BLOCXX_NAMESPACE::NonRecursiveMutex::release | ( | ) |
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.
no | exception |
Definition at line 79 of file NonRecursiveMutex.cpp.
References BLOCXX_THROW, m_mutex, and BLOCXX_NAMESPACE::NonRecursiveMutexImpl::releaseMutex().
|
friend |
Definition at line 88 of file NonRecursiveMutex.hpp.
|
private |
Definition at line 84 of file NonRecursiveMutex.hpp.
Referenced by acquire(), conditionPostWait(), conditionPreWait(), NonRecursiveMutex(), release(), and ~NonRecursiveMutex().