mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
feat(dfr): add pre_main and post_main functions to be called when main wrapping is not feasible.
This commit is contained in:
committed by
Ayoub Benaissa
parent
e43e7d9c17
commit
7cfa0a1212
@@ -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. */
|
||||
/**********************/
|
||||
|
||||
Reference in New Issue
Block a user