#include <RecursiveMutex.h>
Inheritance diagram for RecursiveMutex:
Public Methods | |
RecursiveMutex () | |
Create a new RecursiveMutex. | |
virtual | ~RecursiveMutex () throw () |
Destroy this RecursiveMutex. | |
virtual void | acquire () |
virtual bool | tryAcquire (unsigned long) |
virtual void | release () |
Threads competing to acquire() a Mutex are granted access in FIFO order.
Error Checking
A Mutex will throw an InvalidOp_Exception if an attempt to release() a Mutex is made from the context of a thread that does not currently own that Mutex.
|
Acquire a RecursiveMutex, possbily blocking until the the current owner of the RecursiveMutex release()es it or until an exception is thrown. Only one thread may acquire() the RecursiveMutex at any given time. The same thread may acquire a RecursiveMutex multiple times.
Implements Lockable. |
|
Release a RecursiveMutex allowing another thread to acquire() it. see Lockable::release()
Implements Lockable. |
|
Acquire a RecursiveMutex, possbily blocking until the the current owner of the RecursiveMutex release()es it, until an exception is thrown or until the given amount of time expires. Only one thread may acquire() the RecursiveMutex at any given time. The same thread may acquire a RecursiveMutex multiple times.
Implements Lockable. |