Subj : Re: YALFAm (Yet Another Lock Free Approach, maybe) To : comp.programming.threads From : James Talbut Date : Mon May 16 2005 06:50 pm "Chris Thomasson" <_no_damn_spam_cristom@_no_damn_comcast.net_spam> wrote in message news:WYidnX49N-9PRBrfRVn-qA@comcast.com... > You simply can't avoid assembly language wrt lock-free programming. > A C compiler is not trustworthy enough; it can and will screw you. Even with the _InterlockedCompareExchange() intrinsic function on Windows? Why? The risk of it optimising things into a different order? I know the first time I do this I'll spend a lot of time working with the compiled assembly code. -- J.T. Please reply via the newsgroup. .