Hi,
Assuming the semaphores and threads are going to be used for the life of the program is it necessary to use sem_open for each thread that wishes to use the semaphore? Can the initialization routine use sem_create followed by a sem_open and then pass the pointer to the semaphore to all those that need it? Same question for the events. I do plan on using the SEM_PRIORITY_INHERITANCE.
Thanks,
Will
Solved! Go to Solution.
Thank you for pointing to this. Your change request was accepted and the RM will be changed with next release of MQX.
Hi,
Follow up - actually the sample code for sem_open in the MQX Reference Manual would imply this could be done since sem_handle is being used without a corresponding sem_open, although the sem_handle is never initialized. This is different from the same code in the users guide.
Thanks,
Will
Thank you for pointing to this. Your change request was accepted and the RM will be changed with next release of MQX.