#include <PriorityInheritanceMutex.h>
Inheritance diagram for ZThread::PriorityInheritanceMutex:
Public Member Functions | |
PriorityInheritanceMutex () | |
virtual | ~PriorityInheritanceMutex () |
virtual void | acquire () |
virtual bool | tryAcquire (unsigned long timeout) |
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 already 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.
ZThread::PriorityInheritanceMutex::PriorityInheritanceMutex | ( | ) |
ZThread::PriorityInheritanceMutex::~PriorityInheritanceMutex | ( | ) | [virtual] |
void ZThread::PriorityInheritanceMutex::acquire | ( | ) | [virtual] |
void ZThread::PriorityInheritanceMutex::release | ( | ) | [virtual] |
bool ZThread::PriorityInheritanceMutex::tryAcquire | ( | unsigned long | timeout | ) | [virtual] |