Leave all thread cleanup to Windows when DLL_PROCESS_DETACH happens

trying to do an orderly shutdown of threads here is likely to cause a deadlock - DllMain is called while the loader lock is held, also event handling is serialized in this situation so thread exit signals cannot get delivered until DllMain itself returns.
This commit is contained in:
Martin Kroeker 2020-01-07 22:29:20 +01:00 committed by GitHub
parent fbb894948c
commit bb5c9b2157
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3146,7 +3146,7 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReser
case DLL_THREAD_DETACH: case DLL_THREAD_DETACH:
break; break;
case DLL_PROCESS_DETACH: case DLL_PROCESS_DETACH:
gotoblas_quit(); /* gotoblas_quit(); */
break; break;
default: default:
break; break;