[Mono-dev] Double check locking pattern in Mono? (was: Some notes from my use of Gengarme...)
Arek Waliszewski
arek at forcom.com.pl
Tue May 13 11:34:44 EDT 2008
>
> Zoltan, can we then consider that Mono mimics .NET in this aspect:?
> http://msdn2.microsoft.com/en-us/library/ms998558.aspx
>
Microsoft implementation is correct, but you MUST use volatile modifier
on instance variable IMHO.
So the rule should be: if you use double-check locking you have to use
volatile modifier.
Regards,
Arek
More information about the Mono-devel-list
mailing list