Address of TLS variables

Alex Rønne Petersen alex at lycus.org
Sat Jun 23 12:51:03 PDT 2012


Hi,

Does taking the address of a TLS variable and passing it to other 
threads have defined semantics? I would assume it results in a pointer 
to the thread's instance of the TLS variable (which makes sense), but is 
passing it to other threads OK? Does the language guarantee this?

-- 
Alex Rønne Petersen
alex at lycus.org
http://lycus.org



More information about the Digitalmars-d-learn mailing list