On Thu, 24 Dec 2009 13:44:41 +0300, alkor <[email protected]> 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

Reply via email to