Is D right for me?
Denis Koroskin
2korden at gmail.com
Wed Oct 13 01:15:51 PDT 2010
On Wed, 13 Oct 2010 09:17:58 +0400, Walter Bright
<newshound2 at digitalmars.com> wrote:
> Denis Koroskin wrote:
>> Either way, it needs some language support, because currently TLS
>> implemented on compiler level rather than library level. I proposed
>> this change in past, but no one responded.
>
> Using TLS needs operating system support, and there's special linker
> support for it and the compiler has to generate TLS references in
> certain ways in order for it to work.
>
> There is no such support in OSX for TLS, and it is done manually by the
> library. However, TLS access is 10 times slower than on Linux/Windows.
>
> Without doing TLS in the operating system standard way, you tend to get
> hosed if you link with a shared library/DLL that has TLS.
Aha. Thanks for pointing that out, it never occurred to me before. Means I
need to investigate Fibers for D2 then (thats the proper way anyway albeit
less portable).
More information about the Digitalmars-d
mailing list