core.atomic: atomicFence, atomicLoad, atomicStore
ref2401 via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jan 12 05:37:17 PST 2015
Thanks for the links.
I have shared class instance. There are two threads which can
read/write fields of the class. As i understand i can declare
class as synchronized or i can read/write using
atomicLoad/atomicStore.
What's the difference between these two approaches?
In what circumstances should i consider synchronized classes or
using std.atomic?
More information about the Digitalmars-d-learn
mailing list