summaryrefslogtreecommitdiff
path: root/src/global.c
diff options
context:
space:
mode:
authorJeff Hostetler <jeffhost@microsoft.com>2015-04-18 09:07:48 -0400
committerJeff Hostetler <jeffhost@microsoft.com>2015-04-18 09:07:48 -0400
commit06c985d8647a254000ed172fd888cc853a2c91dd (patch)
treeef0d0780047aa37a4d9dbdb99ac6ebd92bbdb1fe /src/global.c
parentd3fb7d93a6e2ead0506e17152030ab7dfdb1ac41 (diff)
downloadlibgit2-06c985d8647a254000ed172fd888cc853a2c91dd.tar.gz
Rename routine to free TLS data
Diffstat (limited to 'src/global.c')
-rw-r--r--src/global.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/global.c b/src/global.c
index b5e4b5d00..f267fbd24 100644
--- a/src/global.c
+++ b/src/global.c
@@ -226,7 +226,7 @@ static void synchronized_threads_shutdown(void)
/* Shut down any subsystems that have global state */
git__shutdown();
- git__free_thread_global_state();
+ git__free_tls_data();
TlsFree(_tls_index);
git_mutex_free(&git__mwindow_mutex);
@@ -267,7 +267,12 @@ git_global_st *git__global_state(void)
return ptr;
}
-void git__free_thread_global_state(void)
+/**
+ * Free the TLS data associated with this thread.
+ * This should only be used by the thread as it
+ * is exiting.
+ */
+void git__free_tls_data(void)
{
void *ptr = TlsGetValue(_tls_index);
if (!ptr)