4 ms·
Perhaps azth is writing C?
by voidlogic 12y ago
Perhaps azth is writing C?
- comex 12y agoC11 has atomics which works similarly to C++11's.
- voidlogic 12y agoSure but the vast majority of C out there is C89/90/99.
- mpyne 12y agoC 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.