Curious global variable bug? Bad assumptions on my part?
Eljay Love-Jensen
eljay@adobe.com
Thu Feb 14 17:11:00 GMT 2008
Hi Matthew,
> Huh? I thought SMP hardware is required to be responsible for cache
> syncing in such an instance...
No. Alas. Perhaps on some SMP hardware, but not all.
For the hardware I used, which definitely did not have that feature, that's
why the pthread library emitted a memory barrier around the mutex: to
ensure the caches are synchronized.
Sincerely,
--Eljay
More information about the Gcc-help
mailing list