[Interest] Heavily Commented Example: Simple Single Frontend with Two BackendsHi,

Thiago Macieira thiago.macieira at intel.com
Mon Oct 22 17:02:41 CEST 2012


On segunda-feira, 22 de outubro de 2012 15.18.17, Thomas McGuire wrote:
> Therefore, if your two threads are living on different CPUs, one CPU might
> not  see the update on the other CPU, since the CPU caches are not updated.
> volatile does not help with that, you need proper memory barriers.

I don't know what you meant by "memory barriers" so I'm going to be explicit: 
you need the proper acquire and release memory semantics.

-- 
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/20121022/9cc6fef0/attachment.sig>


More information about the Interest mailing list