[*] manually call mi_thread_done to avoid fls
This commit is contained in:
parent
17ca7a6bef
commit
8408358c9d
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user