summaryrefslogtreecommitdiff
path: root/src/global.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/global.c')
-rw-r--r--src/global.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/global.c b/src/global.c
index 368c6c664..691f0d4f6 100644
--- a/src/global.c
+++ b/src/global.c
@@ -9,6 +9,9 @@
#include "git2/threads.h"
#include "thread-utils.h"
+
+git_mutex git__mwindow_mutex;
+
/**
* Handle the global state with TLS
*
@@ -47,12 +50,14 @@ void git_threads_init(void)
_tls_index = TlsAlloc();
_tls_init = 1;
+ git_mutex_init(&git__mwindow_mutex);
}
void git_threads_shutdown(void)
{
TlsFree(_tls_index);
_tls_init = 0;
+ git_mutex_free(&git__mwindow_mutex);
}
git_global_st *git__global_state(void)