MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / mi_fls_done

Function mi_fls_done

3rd/mimalloc-2.0.9/src/init.c:381–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

_mi_thread_doneFunction · 0.85

Tested by

no test coverage detected