Re: [Jack-Devel] jconvolver and OSX

PrevNext  Index
DateMon, 28 Feb 2011 06:40:11 -0500
From Paul Davis <[hidden] at linuxaudiosystems dot com>
ToFons Adriaensen <[hidden] at linuxaudio dot org>
Cc[hidden] at lists dot jackaudio dot org
In-Reply-ToFons Adriaensen Re: [Jack-Devel] jconvolver and OSX
Follow-UpFons Adriaensen Re: [Jack-Devel] jconvolver and OSX
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.

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.

--p
PrevNext  Index

1298893223.16166_0.ltw:2,a <AANLkTim6oQZ2pqE=hyhfd=pKu3JPUNuAG5zjbn4Nf8Au at mail dot gmail dot com>