MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / _rpmalloc_thread_destructor

Function _rpmalloc_thread_destructor

source/extern/rpmalloc.c:865–875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

863
864#if defined(_WIN32) && (!defined(BUILD_DYNAMIC_LINK) || !BUILD_DYNAMIC_LINK)
865static void NTAPI
866_rpmalloc_thread_destructor(void* value) {
867#if ENABLE_OVERRIDE
868 // If this is called on main thread it means rpmalloc_finalize
869 // has not been called and shutdown is forced (through _exit) or unclean
870 if (get_thread_id() == _rpmalloc_main_thread_id)
871 return;
872#endif
873 if (value)
874 rpmalloc_thread_finalize(1);
875}
876#endif
877
878

Callers

nothing calls this directly

Calls 2

get_thread_idFunction · 0.85
rpmalloc_thread_finalizeFunction · 0.85

Tested by

no test coverage detected