Core.atomic: Fencing?

Iain Buclaw ibuclaw at ubuntu.com
Fri Apr 8 13:47:19 PDT 2011


== Quote from dsimcha (dsimcha at yahoo.com)'s article
> == Quote from Iain Buclaw (ibuclaw at ubuntu.com)'s article
> > On top of that, GCC targets will (*WIP*) be using builtin atomic load/cas routines
> > for architectures that support. And I'm pretty certain LDC does the same (I
> > believe it's implemented in Tango).
> > Regards
> I assume the implication is that the GCC builtin atomics act as full barriers on
> all architectures?

All sync builtins are described as full barriers. Non-traditional locks are
acquire or release barriers.


More information about the Digitalmars-d mailing list