mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-07 07:49:31 +03:00
windows on arm threadpool detect
This commit is contained in:
parent
efbd3e5de8
commit
7b8a710774
1 changed files with 1 additions and 1 deletions
|
@ -834,7 +834,7 @@ static void NTAPI mi_win_main(PVOID module, DWORD reason, LPVOID reserved) {
|
|||
#endif
|
||||
|
||||
bool _mi_prim_thread_is_in_threadpool(void) {
|
||||
#if (MI_ARCH_X64 || MI_ARCH_X86)
|
||||
#if (MI_ARCH_X64 || MI_ARCH_X86 || MI_ARCH_ARM64)
|
||||
if (win_major_version >= 6) {
|
||||
// check if this thread belongs to a windows threadpool
|
||||
// see: <https://www.geoffchappell.com/studies/windows/km/ntoskrnl/inc/api/pebteb/teb/index.htm>
|
||||
|
|
Loading…
Add table
Reference in a new issue