[Issue 23313] Accessing TLS is apparently fine from shared context

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 30 15:16:00 UTC 2022


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

--- Comment #1 from anonymous4 <dfj1esp02 at sneakemail.com> ---
The shared attribute on the delegate applies to captured closure variables. TLS
isn't part of closure context, in a way it's stored in the thread, not in the
closure. Normal shared methods can access TLS just fine too.

--


More information about the Digitalmars-d-bugs mailing list