On terça-feira, 23 de outubro de 2012 17.19.13, Thiago Macieira wrote: > Well, that's not exactly how processors work. CPU A will eventually get to > write the data from its cache back to main RAM. And CPU B will eventually > get to notice that and discard its cache. So the code running on CPU B > will eventually get to see the new value. > > The question is only how long that might take.
Actually, I take this back too. There's no instruction to make the CPU flush the caches sooner, at least not one that programs usually use. Same thing on the other end: no instruction to make a load faster. So the code that the compiler generates is probably fine. All you need to do is ensure that it *does* generate the load. -- 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 Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest