Re: PTHREAD_MUTEX_RECURSIVE as alternative for sem_init()
Re: PTHREAD_MUTEX_RECURSIVE as alternative for sem_init()
- Subject: Re: PTHREAD_MUTEX_RECURSIVE as alternative for sem_init()
- From: Jonas Maebe <email@hidden>
- Date: Thu, 21 Dec 2006 10:51:17 +0100
On 20 dec 2006, at 22:28, Jonas Maebe wrote:
Since Darwin does not support nameless semaphores (sem_init), I'm
considering using recursive mutexes instead. Are there any
semantical differences between the two?
A: yes, you can only unlock a mutex from the thread that locked it.
So I guess my only options are nameless pipes and named semaphores.
Jonas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden