[PD-dev] defining PDINSTANCE and PDTHREADS in libpd
IOhannes m zmoelnig
zmoelnig at iem.at
Wed May 3 13:55:31 CEST 2017
On 2017-04-17 22:03, Miller Puckette wrote:
> Meanwhile, there's no assumed relationship between instances and threads.
i was tempted to say hooray, but then...
... i discovered the use of the PERTHREAD macro which expands to
"__thread" which is the keyword for TLS (thread local storage);
i don't really see how this relates to "no assumed relationship between
instances and threads". (though i have to admit that i haven't fully
studied the code yet).
in any case, what's probably more important: it seems that at least some
of the compilers shipped with OSX do not support thread-local storage at
this shows in the travis-ci builds, which currently fail for OSX:
 e.g. https://bugs.freedesktop.org/show_bug.cgi?id=98603
this thread also suggests, that there might be workarounds if one could
raise the "osx-minversion" to >=10.7
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: OpenPGP digital signature
More information about the Pd-dev