On Mon, 27 Oct 2014 09:24:13 -0400
Steven Schveighoffer via Digitalmars-d-learn
<digitalmars-d-learn@puremagic.com> wrote:

> Just as a followup, for some reason Mutex is not callable as a shared 
> object, so you have to make it __gshared.
that's due to difference betwen plain type and shared type.
`shared(Mutex)` is not the same as simply `Mutex`. to use class as
shared var you have to declare it as 'shared class'. or at least
declare some of class methods as 'shared'.

but for Mutex it's perfectly ok to use it as '__gshared' object.

Attachment: signature.asc
Description: PGP signature

Reply via email to