| 379 | #endif |
| 380 | static DWORD mi_fls_key = (DWORD)(-1); |
| 381 | static void NTAPI mi_fls_done(PVOID value) { |
| 382 | mi_heap_t* heap = (mi_heap_t*)value; |
| 383 | if (heap != NULL) { |
| 384 | _mi_thread_done(heap); |
| 385 | FlsSetValue(mi_fls_key, NULL); // prevent recursion as _mi_thread_done may set it back to the main heap, issue #672 |
| 386 | } |
| 387 | } |
| 388 | #elif defined(MI_USE_PTHREADS) |
| 389 | // use pthread local storage keys to detect thread ending |
| 390 | // (and used with MI_TLS_PTHREADS for the default heap) |
nothing calls this directly
no test coverage detected