AnsweredAssumed Answered

CW10, MQX3.6, sem_open, semaphore pointer shared between tasks

Question asked by William Hookway on Jan 7, 2011
Latest reply on Jan 27, 2011 by Juraj Vanco


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.