shared not working!

ag0aep6g via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jul 3 22:08:34 PDT 2016


On 07/04/2016 01:20 AM, Hiemlick Hiemlicker wrote:
> I have thread. It locks up. If I changed from a bool val it is using
> from shared to __gshared it works. I checked the address inside and
> outside of the thread and they are different for shared and same for
> __gshared.
>
[...]
>     shared bool isPaused = false;

Needs to be static shared. __gshared implies static, shared doesn't.


More information about the Digitalmars-d-learn mailing list