This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Sys/Bios GateMutexPri_insertPri

I was looking at the GateMutexPri module, thinking about how I might add timeout behaviors to it - or alternatively add priority inheritance to a semaphore based approach.  While there, I found the function GateMutexPri_insertPri.  It really looks like It isn't correctly finding the task handle in a Task_PendElem.  Instead, it seems like it is casting a Queue_Elem pointer to be a task handle.  Am I nuts?  Or is there a problem here?  (See gates/GateMutexPri.c, down at the bottom of the file.)