[Issue 7333] New: interfaceToC should mention __gshared
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 20 22:11:16 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7333
Summary: interfaceToC should mention __gshared
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: websites
AssignedTo: nobody at puremagic.com
ReportedBy: jmdavisProg at gmx.com
--- Comment #0 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-01-20 22:11:15 PST ---
If I'm not mistaken, C global variables should be marked with __gshared for
them to work correctly, since without that, they're end up being thread-local
per D's type system.
http://dlang.org/interfaceToC.html
does not mention __gshared at all. It should explain that __gshared should be
used on C global variable declarations in order for them not be treated as
thread-local by the compiler.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list