31:  Warning: 'volatile' does not make your code thread-safe. If multiple threads are sharing data, use std::atomic or locks. In addition, 'volatile' may force the compiler to generate worse code than it could otherwise. For more about why 'volatile' doesn't do what you think it does, see http://www.kernel.org/doc/Documentation/volatile-considered-harmful.txt.