Commit d3fb7d93 by Jeff Hostetler

Remove DllMain now that TLS data freed by threads

parent f5ffb40e
......@@ -278,14 +278,6 @@ void git__free_thread_global_state(void)
TlsSetValue(_tls_index, NULL);
}
BOOL WINAPI DllMain(HINSTANCE dll, DWORD reason, LPVOID reserved)
{
if (reason == DLL_THREAD_DETACH)
git__free_thread_global_state();
return TRUE;
}
#elif defined(GIT_THREADS) && defined(_POSIX_THREADS)
static pthread_key_t _tls_key;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment