dmd-x64
Denis Koroskin
2korden at gmail.com
Thu Dec 24 04:30:46 PST 2009
On Thu, 24 Dec 2009 13:44:41 +0300, alkor <alkor at au.ru> wrote:
>> D already has TLS. What exactly do you need?
> hmm ... i don't think so.
>
> i've worked out the following info:
> http://www.digitalmars.com/d/2.0/cpp0x.html#local-classes
> http://www.digitalmars.com/d/2.0/migrate-to-shared.html
>
> but "shared data" are not TLS or i misunderstand something
>
> whether you could give a TLS example?
"Shared data" is something which is *shared* between threads. That's exact
opposite of TLS (thread-*local* storage).
In D2, everything is thread-local by default:
int foo; // thread-local
shared int bar; // shared among threads
More information about the Digitalmars-d
mailing list