Low-Lock Singletons In D

Mehrdad wfunction at hotmail.com
Mon May 6 23:37:07 PDT 2013


On Monday, 6 May 2013 at 18:51:12 UTC, David Nadlinger wrote:
> On Monday, 6 May 2013 at 18:23:51 UTC, Mehrdad wrote:
>>> One way is to ensure write is atomic w.r.t. that particular 
>>> read operation
>> Are't pointer writes always atomic?
>
> No. But *aligned* word-sized writes *on x86* are.
>
> David

Right, but this was specifically meant for x86 (as I mentioned in 
the OP) and pointers are aligned by default. :)


More information about the Digitalmars-d mailing list