Problems with Mutex
    Jonathan M Davis via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Mon Oct 27 12:13:00 PDT 2014
    
    
  
On Monday, October 27, 2014 09:24:13 Steven Schveighoffer via Digitalmars-d-
learn wrote:
> Just as a followup, for some reason Mutex is not callable as a shared
> object, so you have to make it __gshared.
>
> This is unfortunate, but it is the only way to do it right now. Because
> an actual mutex is thread safe, it is not a problem.
The reason that it's not shared is because Sean Kelly didn't want to make
much of anything in druntime shared until shared was better ironed out, which
keeps getting talked about but never done.
- Jonathan M Davis
    
    
More information about the Digitalmars-d-learn
mailing list