Subj : Re: A question about atomic_ptr To : comp.programming.threads From : Chris Thomasson Date : Mon Apr 18 2005 05:07 pm > mfence fails with exception C000001E, "an attempt was made to execute an > invalid lock sequence". Athlon XP 2800+. > > Try replacing the inline assembly with this: __asm__ __volatile__ ("lock; addl $0, 0(%%esp)" : : : "memory"); __asm__ __volatile__ ("mfence" : : : "memory"); .