Ideas for runtime loading of shared libraries.
Jacob Carlborg
doob at me.com
Tue Jan 3 09:44:27 PST 2012
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
More information about the Digitalmars-d
mailing list