Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation |
A monitor is a condition variable and a mutex. More...
#include <qpid/sys/Monitor.h>
Public Types | |
typedef ::qpid::sys::ScopedLock< Mutex > | ScopedLock |
typedef ::qpid::sys::ScopedLock< Mutex > | ScopedLock |
typedef ::qpid::sys::ScopedUnlock < Mutex > | ScopedUnlock |
typedef ::qpid::sys::ScopedUnlock < Mutex > | ScopedUnlock |
Public Member Functions | |
void | wait () |
bool | wait (const AbsTime &absoluteTime) |
void | lock () |
void | lock () |
void | unlock () |
void | unlock () |
bool | trylock () |
bool | trylock () |
void | wait (Mutex &) |
bool | wait (Mutex &, const AbsTime &absoluteTime) |
void | notify () |
void | notify () |
void | notifyAll () |
void | notifyAll () |
Protected Attributes | |
pthread_mutex_t | mutex |
boost::recursive_mutex | mutex |
A monitor is a condition variable and a mutex.
typedef ::qpid::sys::ScopedLock<Mutex> qpid::sys::Mutex::ScopedLock [inherited] |
typedef ::qpid::sys::ScopedLock<Mutex> qpid::sys::Mutex::ScopedLock [inherited] |
typedef ::qpid::sys::ScopedUnlock<Mutex> qpid::sys::Mutex::ScopedUnlock [inherited] |
typedef ::qpid::sys::ScopedUnlock<Mutex> qpid::sys::Mutex::ScopedUnlock [inherited] |
void qpid::sys::Mutex::lock | ( | ) | [inline, inherited] |
Definition at line 115 of file Mutex.h.
References QPID_POSIX_ASSERT_THROW_IF, and qpid::sys::Mutex::mutex.
void qpid::sys::Mutex::lock | ( | ) | [inline, inherited] |
void qpid::sys::Condition::notify | ( | ) | [inline, inherited] |
Definition at line 77 of file Condition.h.
References QPID_POSIX_ASSERT_THROW_IF.
void qpid::sys::Condition::notify | ( | ) | [inline, inherited] |
void qpid::sys::Condition::notifyAll | ( | ) | [inline, inherited] |
Definition at line 81 of file Condition.h.
References QPID_POSIX_ASSERT_THROW_IF.
void qpid::sys::Condition::notifyAll | ( | ) | [inline, inherited] |
bool qpid::sys::Mutex::trylock | ( | ) | [inline, inherited] |
Definition at line 123 of file Mutex.h.
References qpid::sys::Mutex::mutex.
bool qpid::sys::Mutex::trylock | ( | ) | [inline, inherited] |
void qpid::sys::Mutex::unlock | ( | ) | [inline, inherited] |
Definition at line 119 of file Mutex.h.
References QPID_POSIX_ASSERT_THROW_IF, and qpid::sys::Mutex::mutex.
void qpid::sys::Mutex::unlock | ( | ) | [inline, inherited] |
void qpid::sys::Monitor::wait | ( | ) | [inline] |
bool qpid::sys::Monitor::wait | ( | const AbsTime & | absoluteTime | ) | [inline] |
void qpid::sys::Condition::wait | ( | Mutex & | mutex | ) | [inline, inherited] |
Definition at line 62 of file Condition.h.
References QPID_POSIX_ASSERT_THROW_IF, and qpid::sys::Mutex::mutex.
Definition at line 66 of file Condition.h.
References qpid::sys::toTimespec(), qpid::sys::EPOCH, qpid::sys::Mutex::mutex, and QPID_POSIX_ERROR.
pthread_mutex_t qpid::sys::Mutex::mutex [protected, inherited] |
Definition at line 51 of file Mutex.h.
Referenced by qpid::sys::Mutex::Mutex(), qpid::sys::Mutex::~Mutex(), qpid::sys::Mutex::lock(), qpid::sys::Mutex::unlock(), qpid::sys::Mutex::trylock(), and qpid::sys::Condition::wait().
boost::recursive_mutex qpid::sys::Mutex::mutex [protected, inherited] |