4 ms·
volatile is required (but not sufficient) for thread coordination, at least in C++03 and C99. That's why boost atomics uses volatile extensively.
by millstone 6y ago
volatile is required (but not sufficient) for thread coordination, at least in C++03 and C99. That's why boost atomics uses volatile extensively.
- ncmncm 6y agoUsing volatile as if it simply means atomic is wrong. But that is what he insisted.
- gpderetta 6y agoYou can use volatile as part of a suite of compiler specific tricks to implement higher level load acquire/store release operations on x86 (and load consume everywere else), but portably you can't do much.