Low-Lock Singletons In D

Mehrdad wfunction at hotmail.com
Mon May 6 03:06:49 PDT 2013


On Monday, 6 May 2013 at 09:35:59 UTC, Dmitry Olshansky wrote:
> You have to read a field to know what to do next, and the other 
> processor may as well write to it.


That never happens, though. _static is only written to inside a 
lock, and the check is inside a lock, hence the other processor 
can't be writing to it when it's being read...


Maybe I misunderstood what you're saying?


More information about the Digitalmars-d mailing list