Low-Lock Singletons In D

Mehrdad wfunction at hotmail.com
Mon May 6 11:25:18 PDT 2013


On Monday, 6 May 2013 at 13:33:54 UTC, Andrei Alexandrescu wrote:
> It's well known. Needs a memory barrier on each access, so it's 
> slower.


Hmm, are you saying I'm missing a memory barrier I should have 
written, or are you saying I already have a memory barrier which 
I'm not seeing?


The only memory barrier I have is during initialization, and 
after that only read operations occur.


More information about the Digitalmars-d mailing list