[Issue 10165] No syntax to create thread-local shared variables

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 24 19:35:21 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10165



--- Comment #6 from Walter Bright <bugzilla at digitalmars.com> 2013-05-24 19:35:18 PDT ---
You can have a thread-local reference to a shared object:

    static shared(T)* p;

p is thread local, and it points to a shared instance of T.

-- 
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