Core.atomic: Fencing?

Iain Buclaw ibuclaw at ubuntu.com
Sat Apr 9 05:33:35 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?

You can see:

https://bitbucket.org/goshawk/gdc/src/1a74f184e2d8/d/phobos2/gcc/atomics.d
https://bitbucket.org/goshawk/gdc/src/8f5627ca0ba5/d/druntime/core/atomic.d#cl-703

For the implementation if you have any further pondering about it (you mentioning
it has made me finally gotten round to putting it in place. :)

Regards


More information about the Digitalmars-d mailing list