3 ms·
I believe Microsoft compilers have traditionally treated volatile as having ordering properties (giving reads acquire semantics and writes release semantics). O
by cwzwarich 8y ago
I believe Microsoft compilers have traditionally treated volatile as having ordering properties (giving reads acquire semantics and writes release semantics). On x86, this just results in compiler-only barriers, but on Itanium this would result in actual barrier instructions.
This is far from a standard behavior, though.
- gpderetta 8y agoI think this behaviour has been considered a mistake and is disabled by default in recent msvc versions