Converting from tango.Atomic to D2 core.atomic

KennyTM~ kennytm at gmail.com
Wed Jul 6 10:35:29 PDT 2011


On Jul 6, 11 23:48, dsimcha wrote:
> == Quote from eris (jvburnes at gmail.com)'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


More information about the Digitalmars-d mailing list