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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 24 22:32:12 PDT 2013


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


Dmitry Olshansky <dmitry.olsh at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmitry.olsh at gmail.com


--- Comment #7 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2013-05-24 22:32:09 PDT ---
(In reply to comment #6)
> 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.

The bug report is about classes. With T* that would be double indirection.

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