[D-runtime] Adding atomic ops to Druntime

Sean Kelly sean at invisibleduck.org
Sun Dec 6 22:14:34 PST 2009

Yeah, I don't expect the finer-grained barriers to see much use, but I'm hesitant to eliminate the option to have them altogether.  I was hoping it would be enough to have fully synchronized be the default, and just hang a big "Here be Dragons" above the msync enum.

On Dec 6, 2009, at 9:57 PM, Brad Roberts wrote:

> My biggest problem with this design is that it encourages people to try to
> optimize their atomic ops.  The vast majority of people will get it wrong.  If
> it was me, I'd only have fully sequenced operations.  If you really need
> anything else, there's always inline asm.

More information about the D-runtime mailing list