Subj : Re: Memory visibility and the C compiler... ( a bit long ) To : comp.programming.threads From : Alexander Terekhov Date : Mon Jan 17 2005 11:43 am SenderX wrote: [...] > paranoid. My library is intended to be used in production server code. I > figured that if all of my lock-free stuff was totally contained in an > externally assembled library, most of the issues wrt compiler reordering > would go away. Nothing would go away. Think of JIT inlining and reordering. You're still making assumption that may not hold. regards, alexander. .