Re: [Jack-Devel] jconvolver and OSX

PrevNext  Index
DateMon, 28 Feb 2011 11:58:52 +0000
From Fons Adriaensen <[hidden] at linuxaudio dot org>
ToPaul Davis <[hidden] at linuxaudiosystems dot com>
Cc[hidden] at lists dot jackaudio dot org
In-Reply-ToPaul Davis Re: [Jack-Devel] jconvolver and OSX
Follow-UpPaul Davis Re: [Jack-Devel] jconvolver and OSX
On Mon, Feb 28, 2011 at 06:40:11AM -0500, Paul Davis wrote:
> On Mon, Feb 28, 2011 at 6:25 AM, Fons Adriaensen <[hidden]> wrote:
> > Because it doesn't make sense for what are just internal
> > variables, there is no need to make them visible outside
> > the process they are used in.
> >
> > OSX does provide anonymous mutexes and condition variables,
> > so why not anonymous semaphores ?
> 
> as the code pasted by torben demonstrates, its just a matter of
> unlinking the semaphore before proceeding to use it. one could quibble
> about the "race condition" that exists for a few microseconds during
> which the semaphore *is* publically visible, but really its no
> different then the historical technique to create process-private
> temporary files.

Does that mean that if you create a number of them sequentially
and unlink each of them before creating a new one, you can use
the same name for all ?
 
> the *real* issue on OS X is that apple implemented sem_init() with a
> stub function. it does not return an error, but does nothing at all.
> absolutely appalling decision on their part.

It doesn't even reset the value ? Zita-convolver relies on that...

Ciao,

-- 
FA
PrevNext  Index

1298894353.17252_0.ltw:2,a <20110228115852.GC29218 at linuxaudio dot org>