This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Get Semaphore Token Count

Hello All,
I'm new to the RTX system and I am porting some code from VxWorks to RTX.

I'm trying to figure out if a semaphore is blocked or not. How do I access the token count in the semaphore/mutex? I suppose I could call os_sem_wait(semid, 0) and query the response then release the semaphore immediately but this seems like overkill.

Also is there a way/need to delete or free semaphores/mutexes when we are done using them?

0