diff options
author | Chris Robinson <[email protected]> | 2014-04-17 01:09:25 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-04-17 01:09:25 -0700 |
commit | fbb4cbbe01b9ba2fa7b6c2450d2755c244d15151 (patch) | |
tree | d538cf6b722def304bf9195dd8bc8f38b17b804a /Alc/ALc.c | |
parent | e5d39a5f4c871183c7e409abff3c3a6d6c40bf17 (diff) |
Keep TlsDestructors within threads.c
This basically makes the threads implementation self-contained in threads.c and
threads.h, except for the UIntMap/RWLock implementations.
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -786,8 +786,6 @@ static void alc_init(void); static void alc_deinit(void); static void alc_deinit_safe(void); -extern UIntMap TlsDestructors; - #ifndef AL_LIBTYPE_STATIC BOOL APIENTRY DllMain(HINSTANCE hModule, DWORD reason, LPVOID lpReserved) { @@ -797,7 +795,6 @@ BOOL APIENTRY DllMain(HINSTANCE hModule, DWORD reason, LPVOID lpReserved) /* Pin the DLL so we won't get unloaded until the process terminates */ GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_PIN | GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS, (WCHAR*)hModule, &hModule); - InitUIntMap(&TlsDestructors, ~0); alc_init(); break; @@ -809,7 +806,6 @@ BOOL APIENTRY DllMain(HINSTANCE hModule, DWORD reason, LPVOID lpReserved) alc_deinit(); else alc_deinit_safe(); - ResetUIntMap(&TlsDestructors); break; } return TRUE; |