We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
I'm using the RT-lib and was wondering what happens if a semaphore is initiated multiple times during.
Does this reset the token-counter of the semaphore, or will it simply return without doing anything at all?
Is the semaphore registered somewhere when os_sem_init() is called that could mean memory leakage if it is initiated multiple times?
I'm thankful for any answers.
Best Regards /Ake Forslund
Thanks for the answers,
I think I now have a pretty good picture of what will work and what won't.
I'm only using semaphores with no timeout but possible deadlocks are not to be taken lightly. If I proceed with this solution I will have to be really careful before re-initialization, I will have to think about this for a while...
/Ake