Subj : Re: YALFAm (Yet Another Lock Free Approach, maybe) To : comp.programming.threads From : Chris Thomasson Date : Wed May 18 2005 09:25 pm > Even with the _InterlockedCompareExchange() intrinsic function on Windows? Well, I am "not totally sure" of Microsoft's specific guarantees wrt implementing sensitive multi-threaded algorithms. It might be safe... Yet again, it might not be so safe after all... :O > > Why? The risk of it optimising things into a different order? Exactly. > I know the first time I do this I'll spend a lot of time working with the > compiled assembly code. ;) .