[pulseaudio-discuss] More patches for better OS X support

Maarten Bosmans mkbosmans at gmail.com
Sun Apr 24 01:09:47 PDT 2011


2011/4/23 Colin Guthrie <gmane at colin.guthr.ie>:
> This should still work for you on OSX (if not, then I apologise!). I
> added the OS_IS_DARWIN bit as the API for pthread_setname_np does not
> appear to be totally stable (two args here, and I presume just one arg
> on OSX).
>
> I figured this may actually break windows stuff if it also has the
> two-arg version, hence the additional check. Hope that makes sense.

On Windows, I try to avoid pthreads (the pthreads-win32
implementation). While it is certainly possible to use that on
Windows, the current (IMHO preferable) way is using the native win32
threading system with a minimal amount of glue code.

In other words: don't worry about that.

> Of course it may be possible to use pthread_setname_np on linux too
> (albeit with it's two arg variant...) which could simplify the code a bit...
>
> Both changes squashed into your commits.
>
> Col

Maarten



More information about the pulseaudio-discuss mailing list