4 ms·
C has atomic types now also. And I believe in general that volatile only prevents elision of reads and stores, but not optimization in general. That works for m
by mpyne 13y ago
C has atomic types now also. And I believe in general that volatile only prevents elision of reads and stores, but not optimization in general. That works for many cases (and I think it would work here) but it doesn't solve data races in general.