_InterlockedExchange expects a volatile LONG

This commit is contained in:
Jacques Germishuys 2014-04-27 14:25:49 +02:00
parent 1017f81f00
commit 6e94a1efbc

View File

@ -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()
{