Subj : Re: A question about atomic_ptr To : comp.programming.threads From : Joe Seigh Date : Tue Apr 19 2005 07:53 am On Mon, 18 Apr 2005 22:50:52 -0700, Chris Thomasson <_no_damn_spam_cristom@_no_damn_comcast.net_spam> wrote: >> 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??? > > > I don't because I don't use it. MFENCE isn't on P3's which is what I have. -- Joe Seigh When you get lemons, you make lemonade. When you get hardware, you make software. .