Counting semaphore value

Posted by rrrum on May 20, 2016

For debug purpose I would like to know value of counting semaphore before giving semaphore.

Is there a function that returns count value?

rum


Counting semaphore value

Posted by rtel on May 20, 2016

If you are using V9.0.0rc2 then you can use uxSemaphoreGetCount(), otherwise you can use uxQueueMessagesWaiting() and just cast the SemaphoreHandlet to a QueueHandlet for the function's parameter.