C++11 requires compilers to generate a thread-safe assembly in this
case.
So does gcc, and so expected I. However, Microsoft compiler seems to ignore this
requirement. For instance, people talk about this on
gamedev.
Be careful!