Extend the QXK mutex to support also simple operation without the...
Real-Time Event Frameworks based on active objects & state machines
Brought to you by:
quantum-leaps
A commercial customer requests to extend the QXK mutex facility (QXMutex class) to support also a simple operation without applying the priority-ceiling protocol. This simpler QXMutex usage mode (no priority-ceiling) should NOT require or use any thread priority levels in QP. The QXMutex should continue to offer the priority-ceiling protocol mode, but only when the ceiling priority is specified.
Proposed feature design:
ceiling==0 argument in the mutex initialization QXMutex::init().ceiling==0 (QXMutex::init(0)) means "no ceiling", so such mutex will NOT use the priority-ceiling protocol.QXMutex::lock() operation.ceiling>0, QXMutex WILL use the priority-ceiling protocol, as before. It will require that the ceiling priority be unique and not used by any other thread or mutex. In other words, the previous functionality remains unchanged.--MMS
Anonymous
Diff:
Diff:
Implemented in QP/C/C++ 5.9.9.
--MMS