mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 12:45:00 +00:00
Remove DllMain now that TLS data freed by threads
This commit is contained in:
parent
f5ffb40e2b
commit
d3fb7d93a6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user