Commit 6e94a1efbca605957d6fc56ae068f30ef57c3c01

Jacques Germishuys 2014-04-27T14:25:49

_InterlockedExchange expects a volatile LONG

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/global.c b/src/global.c
index 15baf1e..2ed5b4c 100644
--- a/src/global.c
+++ b/src/global.c
@@ -74,7 +74,7 @@ static void git__shutdown(void)
 #if defined(GIT_THREADS) && defined(GIT_WIN32)
 
 static DWORD _tls_index;
-static DWORD _mutex = 0;
+static volatile LONG _mutex = 0;
 
 static int synchronized_threads_init()
 {