#include <PriorityInheritanceMutex.h>
Inheritance diagram for PriorityInheritanceMutex:
Public Methods | |
PriorityInheritanceMutex () | |
Create a new PriorityInheritanceMutex. | |
virtual | ~PriorityInheritanceMutex () throw () |
Destroy this PriorityInheritanceMutex. | |
virtual void | acquire () |
virtual bool | tryAcquire (unsigned long) |
virtual void | release () |
Threads competing to acquire() a PriorityInheritanceMutex are granted access in order of priority. Threads with a higher priority will be given access first.
When a higher priority thread tries to acquire() a PriorityInheritanceMutex and is about to be blocked by a lower priority thread that has alerady acquire()d it, the lower priority thread will temporarily have its effective priority raised to that of the higher priority thread until it release()s the mutex; at which point its previous priority will be restored.
|
Acquire a PriorityInheritanceMutex, possbily blocking until the the current owner of the PriorityInheritanceMutex release()es it or until an exception is thrown. Only one thread may acquire() the PriorityInheritanceMutex at any given time.
Implements Lockable. |
|
Release a PriorityInheritanceMutex allowing another thread to acquire() it. see Lockable::release()
Implements Lockable. |
|
Acquire a PriorityInheritanceMutex, possbily blocking until the the current owner of the PriorityInheritanceMutex release()es it, until an exception is thrown or until the given amount of time expires. Only one thread may acquire() the PriorityInheritanceMutex at any given time.
Implements Lockable. |