Skip to content

Commit

Permalink
Remove DllMain now that TLS data freed by threads
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffhostetler committed Apr 17, 2015
1 parent f5ffb40 commit d3fb7d9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/global.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d3fb7d9

Please sign in to comment.