#include <PriorityMutex.h>
Inheritance diagram for PriorityMutex:
Public Methods | |
PriorityMutex () | |
Create a PriorityMutex. | |
virtual | ~PriorityMutex () throw () |
Destroy this PriorityMutex. | |
virtual void | acquire () |
virtual bool | tryAcquire (unsigned long) |
virtual void | release () |
Threads competing to acquire() a Mutex are granted access in order of priority. Threads with a higher priority will be given access first.
|
Acquire a PriorityMutex, possbily blocking until the the current owner of the PriorityMutex release()es it or until an exception is thrown. Only one thread may acquire() the PriorityMutex at any given time.
Implements Lockable. |
|
Release a PriorityMutex allowing another thread to acquire() it. see Lockable::release()
Implements Lockable. |
|
Acquire a PriorityMutex, possbily blocking until the the current owner of the PriorityMutex release()es it, until an exception is thrown or until the given amount of time expires. Only one thread may acquire() the PriorityMutex at any given time.
Implements Lockable. |