Subj : Re: A question about atomic_ptr To : comp.programming.threads From : Chris Thomasson Date : Sun Apr 17 2005 09:32 am > > ac_i686_lfgc_smr_activate_reload: > mov eax, [ecx] > mov [edx], eax > mfence > cmp eax, [ecx] > jne ac_i686_lfgc_smr_activate_reload > > Have you tried lock mov [edx], eax or lock cmp eax, [ecx]? Yes. You "should" try to avoid using that prefix. No need to lock a cache line or "possibly" lock the bus for SMR i686 impl. BTW, the cmp instruction can not be used with lock prefix... .