Re: PTHREAD_MUTEX_RECURSIVE as alternative for sem_init()
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On 20 dec 2006, at 22:28, Jonas Maebe wrote: Jonas _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Jonas Maebe