[Issue 15523] extern(C++) support TLS (C++ 'thread_local') linkage?
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Jan 7 23:51:27 PST 2016
https://issues.dlang.org/show_bug.cgi?id=15523
--- Comment #3 from Jacob Carlborg <doob at me.com> ---
(In reply to Manu from comment #2)
> Okay, well then, the question is, can we support C++ 'thread_local'
> semantics for extern(C++) of non-__gshared?
As with everything, it's just a matter of someone implementing it. Although, if
"__thread" and "thread_local" have different semantics, I wonder what syntax to
use in D then.
// foo.cpp
__thread int a;
thread_local int b;
// foo.d
extern(C++) extern int a; // this will have the semantics of __thread
extern(C++) extern /* __thread_local ? */ int b; // what should this syntax be?
--
More information about the Digitalmars-d-bugs
mailing list