__thread is supported under Lion via Clang. Sent from my iPhone
On Jan 3, 2012, at 9:44 AM, Jacob Carlborg <[email protected]> wrote: > On 2012-01-03 17:53, Martin Nowak wrote: >> Yes most, but not all. >> The core issue here is that C++'s __thread doesn't allow dynamic >> initializers, >> thus there is no infrastructure to do such things. And really a clean >> approach >> would be to extend libc/ld.so. > > First, __thread isn't supported in Mac OS X (if we're talking about that). > For all the operating systems that do support TLS I'm pretty sure that TLS > and dynamic libraries work. > > This documentation: > > http://www.akkadia.org/drepper/tls.pdf > > mentions several different TLS modes, some used for dynamic libraries and > some used for other cases. > > -- > /Jacob Carlborg
