binary semaphore with NON-busy waiting

can someone please help me on how will I be able to program this?

So, say I have a process and its placed into the binary semaphore, I can't have the same process be placed into the same binary semaphore or any other binary semaphore right? Or can I?

In C++11 (and boost) there is no semaphore but mutex:

http://www.cplusplus.com/reference/mutex/mutex/?kw=mutex


Use a recursive_mutex if you want to lock it multiple times for the same thread:

http://www.cplusplus.com/reference/mutex/recursive_mutex/
Topic archived. No new replies allowed.