Subj : Re: Memory visibility and MS Interlocked instructions To : comp.programming.threads From : David Schwartz Date : Thu Aug 25 2005 03:23 pm "Marcin 'Qrczak' Kowalczyk" wrote in message news:87br3lzsy2.fsf@qrnik.zagroda... > "David Schwartz" writes: >>> But this would require that MS insert membars on all volatile >>> accesses, because there is, in general, no way to know whether >>> another part of the program uses an interlocked instruction. >>> Do MS and MS-compatible compilers really do that? >> On x86, it's not needed. I'm not sure about other platforms. > I guess MS doesn't care about other platforms. They certainly didn't when the first developed the Interlocked* functions, or their memory model for WIN32. DS .