#include <Mutex.h>
Inheritance diagram for activemq::concurrent::Mutex:

Public Member Functions | |
| Mutex () | |
| virtual | ~Mutex () |
| virtual void | lock () throw ( exceptions::ActiveMQException ) |
| virtual void | unlock () throw ( exceptions::ActiveMQException ) |
| virtual void | wait () throw ( exceptions::ActiveMQException ) |
| virtual void | wait (unsigned long millisecs) throw ( exceptions::ActiveMQException ) |
| virtual void | notify () throw ( exceptions::ActiveMQException ) |
| virtual void | notifyAll () throw ( exceptions::ActiveMQException ) |
Private Member Functions | |
| bool | isLockOwner () |
Private Attributes | |
| CRITICAL_SECTION | mutex |
| std::list< HANDLE > | eventQ |
| int | lock_count |
| unsigned long | lock_owner |
|
|
Constructor - creates and initializes the mutex. |
|
|
Destructor - destroys the mutex object. |
|
|
Check if the calling thread is the Lock Owner true if the caller is the lock owner |
|
|
Locks the object.
Implements activemq::concurrent::Synchronizable. |
|
|
Signals a waiter on this object that it can now wake up and continue.
Implements activemq::concurrent::Synchronizable. |
|
|
Signals the waiters on this object that it can now wake up and continue.
Implements activemq::concurrent::Synchronizable. |
|
|
Unlocks the object.
Implements activemq::concurrent::Synchronizable. |
|
|
Waits on a signal from this object, which is generated by a call to Notify. Must have this object locked before calling. This wait will timeout after the specified time interval.
Implements activemq::concurrent::Synchronizable. |
|
|
Waits on a signal from this object, which is generated by a call to Notify.
Implements activemq::concurrent::Synchronizable. |
|
|
|
|
|
|
|
|
|
|
|
The mutex object. |
1.4.5