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