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.

Is there a reason I should use SEM_create instead of just declaring a SEM_obj object in my class?

Hi

I wish to define a class that uses a semaphore to make a method wait for an ISR.  Is is valid to define a private SEM_obj member in my class (with a call to SEM_new in the constructor), is there a reason why I should/must use SEM_create or are both approaches equally valid?

If it makes a difference, I am using DSP/BIOS 5.41 with CCS4 targetting a C64+ series DSP.

Thanks in advance

Tim