MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_thread_detach_callback

Function cbm_thread_detach_callback

src/foundation/compat_thread.c:95–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95static void NTAPI cbm_thread_detach_callback(PVOID handle, DWORD reason, PVOID reserved) {
96 (void)handle;
97 (void)reserved;
98 if (reason == DLL_THREAD_DETACH) {
99 cbm_memev_thread_end(); /* waste-sanitizer thread state; no-op outside that build */
100 }
101 if (reason == DLL_THREAD_DETACH && thread_release_heap_enabled()) {
102 mi_thread_done();
103 }
104}
105
106/* Park the callback in .CRT$XLB, the table the loader walks. The linker only
107 * emits a TLS directory when _tls_used is referenced, so anchor it. */

Callers

nothing calls this directly

Calls 2

cbm_memev_thread_endFunction · 0.85

Tested by

no test coverage detected