https://issues.dlang.org/show_bug.cgi?id=17476

Mathias Lang <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
                   |                            |m

--- Comment #4 from Mathias Lang <[email protected]> ---
> In main, you set the TLS instance of path corresponding to the main thread to 
> "foobar". The "parallel" loop body will use the current thread's TLS 
> instance, but because the order of execution of threads is of course 
> undefined, you get inconsistent results.

So you can implicitly capture TLS variables and use them from other thread ?
Doesn't that completely defeat the purpose of thread locality ?

--

Reply via email to