Initialize the process; called by thread_init or the process loader
| 1126 | |
| 1127 | // Initialize the process; called by thread_init or the process loader |
| 1128 | void mi_process_init(void) mi_attr_noexcept { |
| 1129 | // #if _MSC_VER < 1920 |
| 1130 | // mi_heap_main_init(); // vs2017 can dynamically re-initialize _mi_heap_main |
| 1131 | // #endif |
| 1132 | mi_atomic_do_once { |
| 1133 | mi_process_init_once(); |
| 1134 | } |
| 1135 | } |
| 1136 | |
| 1137 | // Called when the process is done (cdecl as it is used with `at_exit` on some platforms) |
| 1138 | void mi_cdecl mi_process_done(void) mi_attr_noexcept { |
no test coverage detected