mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-08-24 00:04:48 +03:00
add mi_process_done to the api
This commit is contained in:
parent
d7d6c3b5c3
commit
e7cbbbfb14
2 changed files with 14 additions and 6 deletions
|
@ -642,7 +642,11 @@ void mi_process_init(void) mi_attr_noexcept {
|
|||
}
|
||||
}
|
||||
|
||||
// Called when the process is done (through `at_exit`)
|
||||
void mi_cdecl mi_process_done(void) mi_attr_noexcept {
|
||||
_mi_process_done();
|
||||
}
|
||||
|
||||
// Called when the process is done (cdecl as it is used with `at_exit` on some platforms)
|
||||
void mi_cdecl _mi_process_done(void) {
|
||||
// only shutdown if we were initialized
|
||||
if (!_mi_process_is_initialized) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue