Prevent compiler from optimizing this flag out
authorCryptoManiac <balthazar@yandex.ru>
Sat, 30 Apr 2016 19:23:30 +0000 (22:23 +0300)
committerCryptoManiac <balthazar@yandex.ru>
Sat, 30 Apr 2016 19:23:30 +0000 (22:23 +0300)
src/init.cpp

index db17c20..13f1916 100644 (file)
@@ -81,7 +81,7 @@ void Shutdown(void* parg)
             fTaken = true;
         }
     }
-    static bool fExit;
+    volatile static bool fExit;
     if (fFirstThread)
     {
         fShutdown = true;