On sexta-feira, 26 de julho de 2013 12:09:43, Mandeep Sandhu wrote: > Well, thats why I asked the previous question, i.e if foo is of machine > word size or less, _then_ will the compiler generate the atomic fetch and > add instruction or will that have to be done explicitly by the programmer?
And I had answered that in the email you replied to, asking the question: "Doing both at the same time is not atomic anywhere unless you use specialised fetch-and-add instructions, which the compiler never generates for you." "the compiler never generates for you" -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
