[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
all [1].
this shows in the travis-ci builds, which currently fail for OSX:
https://travis-ci.org/pure-data/pure-data/jobs/227985898
fgas,dr
IOhannes
[1] 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...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20170503/69228cc2/attachment.sig>
More information about the Pd-dev
mailing list