From 23d5647205bf82bf83f9ba0c647bfc3b51ebe813 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Fri, 1 Apr 2016 00:16:15 +0200 Subject: [PATCH] Variable must be volatile as it's used in multiple threads Signed-off-by: Sven Strickroth --- src/TGitCache/ShellUpdater.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TGitCache/ShellUpdater.h b/src/TGitCache/ShellUpdater.h index 2c266e45c..469a2c9cd 100644 --- a/src/TGitCache/ShellUpdater.h +++ b/src/TGitCache/ShellUpdater.h @@ -48,7 +48,7 @@ private: CAutoGeneralHandle m_hTerminationEvent; CAutoGeneralHandle m_hWakeEvent; - bool m_bItemsAddedSinceLastUpdate; + volatile bool m_bItemsAddedSinceLastUpdate; volatile LONG m_bRunning; }; -- 2.11.4.GIT