[*] manually call mi_thread_done to avoid fls

This commit is contained in:
Reece Wilson 2023-10-28 15:30:28 +01:00
parent 17ca7a6bef
commit 8408358c9d

View File

@ -37,7 +37,7 @@
#include "Threading/AuSleep.hpp" #include "Threading/AuSleep.hpp"
#include "Memory/Cache.hpp" #include "Memory/Cache.hpp"
#include "Threading/Primitives/SMTYield.hpp" #include "Threading/Primitives/SMTYield.hpp"
#include <mimalloc.h>
#include "AuProcAddresses.hpp" #include "AuProcAddresses.hpp"
#if defined(AURORA_IS_LINUX_DERIVED) #if defined(AURORA_IS_LINUX_DERIVED)
@ -248,7 +248,12 @@ BOOL WINAPI DllMain(
{ {
if (fdwReason == DLL_PROCESS_ATTACH) if (fdwReason == DLL_PROCESS_ATTACH)
{ {
DisableThreadLibraryCalls(hinstDLL); //DisableThreadLibraryCalls(hinstDLL);
}
if (fdwReason == DLL_THREAD_DETACH)
{
mi_thread_done();
} }
return TRUE; return TRUE;