In a discussion like this you have to mention that Microsoft’s compiler extended volatile to mean atomic[1], although its default behavior depends on target ISA apparently. Regardless, just use c11/c++11 atomics at this point.
1. https://learn.microsoft.com/en-us/cpp/cpp/volatile-cpp?view=...