| 863 | |
| 864 | #if defined(_WIN32) && (!defined(BUILD_DYNAMIC_LINK) || !BUILD_DYNAMIC_LINK) |
| 865 | static 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 |
nothing calls this directly
no test coverage detected