[pulseaudio-discuss] semaphores macosx, comments please

Daniel Mack daniel at caiaq.de
Thu Nov 12 13:21:49 PST 2009


On Thu, Nov 12, 2009 at 07:37:26PM +0100, Claesson Mattias wrote:
> This is what I did for src/pulsecore/semaphore-osx.c
> @@ -21,11 +21,11 @@
>  
>  #ifdef HAVE_CONFIG_H
>  #include <config.h>
>  #endif
>  
> -#include <Multiprocessing.h>
> +#include <CoreServices/CoreServices.h>
>  
>  #include <pulse/xmalloc.h>
>  #include <pulsecore/macro.h>
>  
>  #include "semaphore.h"
> 
> ----------------
> 
> POSIX unnamed semaphores are not supported under macos x. Other free software use named semaphores (that is supposed to work) to implement also unnamed semaphores.
> sem_open("clever random name")  + sem_unlink() instead of sem_init() + sem_close().
> Tried a quick test and it should be possible to get this to work, it all depends on the "random name" used.

Hmm - what exactly is the problem you're seeing? What is the reason for
changing that? Doesn't the current code compile for you?

Daniel



More information about the pulseaudio-discuss mailing list