[Interest] QMap and thread-safe.

Thiago Macieira thiago.macieira at intel.com
Fri Jul 26 09:02:18 CEST 2013


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130726/21a2568d/attachment.sig>


More information about the Interest mailing list