MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / mi_process_init

Function mi_process_init

system/lib/mimalloc/src/init.c:1128–1135  ·  view source on GitHub ↗

Initialize the process; called by thread_init or the process loader

Source from the content-addressed store, hash-verified

1126
1127// Initialize the process; called by thread_init or the process loader
1128void 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)
1138void mi_cdecl mi_process_done(void) mi_attr_noexcept {

Callers 2

mi_thread_initFunction · 0.85
_mi_auto_process_initFunction · 0.85

Calls 1

mi_process_init_onceFunction · 0.85

Tested by

no test coverage detected