Subj : Re: Memory visibility and MS Interlocked instructions To : comp.programming.threads From : Alexander Terekhov Date : Mon Aug 29 2005 09:23 pm Alexander Terekhov wrote: > > Torsten Robitzki wrote: > [...] > > In this case it will be sufficient to make sure that the compiler won't > > reorder the reads on the reading side, which might be given as one of > > the variables involed beeing volatile qualified. ^^^^^^ > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > What makes you think so? I mean: what makes you think that compiler won't reorder when "one of the variables involed beeing volatile qualified." regards, alexander. .