feat(dfr): add pre_main and post_main functions to be called when main wrapping is not feasible.

This commit is contained in:
Antoniu Pop
2022-03-11 09:35:05 +00:00
committed by Ayoub Benaissa
parent e43e7d9c17
commit 7cfa0a1212

View File

@@ -323,6 +323,16 @@ int __wrap_main(int argc, char *argv[]) {
}
}
void _dfr_pre_main() {
_dfr_start_impl(0, nullptr);
hpx::suspend();
}
void _dfr_post_main() {
hpx::resume();
_dfr_stop_impl();
}
/**********************/
/* Debug interface. */
/**********************/