Supporting emulated tls

Martin Nowak dawg at dawgfoto.de
Sun Mar 25 11:34:24 PDT 2012


On Sun, 25 Mar 2012 16:29:25 +0200, Jacob Carlborg <doob at me.com> wrote:

> On 2012-03-23 12:55, Martin Nowak wrote:
>>
>> Just another point about TLS.
>>
>> extern(C) /*__thread*/ int foo;
>>
>> At some point you want to be able to access C++ TLS variables
>> so emulation should not replace native TLS support.
>
> So C++ TLS is not using the same implementation as the C extension  
> __thread?
>

Sorry,
that might have been misleading.
The point I was trying to make is that D's TLS support shouldn't
deviate from the native platform TLS if one is available. I've just
tried it out, and indeed I can access C TLS variables from D.


More information about the D.gnu mailing list