On Jul 6, 11 23:48, dsimcha wrote:
== Quote from eris ([email protected])'s article
a) core.atomic implements nearly all binary ops as well as nearly all
assignment / increment ops. But it doesn't implement the simplest of the ops:
load, store. Are these assumed to "just work" for ints and doubles? If so,
fine, but there are platform-dependent gotchas lurking along that path.
core.atomic does do atomic load/store as of 2.053.
Yes there are atomicLoad and atomicStore*, but the documentation on
d-p-l.org isn't updated** (it exists in phobos-prerelease*** though).
*:
https://github.com/D-Programming-Language/druntime/blob/master/src/core/atomic.d#L95
**: http://d-programming-language.org/phobos/core_atomic.html
***: http://d-programming-language.org/phobos-prerelease/core_atomic.html