Subj : Re: A question about atomic_ptr To : comp.programming.threads From : Chris Thomasson Date : Mon Apr 18 2005 11:50 pm > Chris Thomasson wrote: >>> mfence fails with exception C000001E, "an attempt was made to >>> execute an invalid lock sequence". Athlon XP 2800+. Odd... I have successfully executed the mfence instructions on xeon (2/4/8-way) boxes. You should check if mfence is fully supported, use cpuid. > This won't work as I don't compile with GCC, but if you are concerned > about > compiler reordering, this is not an issue. I've looked at the disassembly > and it's correct. The mfence instruction just causes an exception. Anyone else having problems??? .