X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/272ccad1b68b6d9c17069f3c934886925bb15b5d..6de9090dd8692387ae343c587b26915f9922d7bd:/src/msg/msg_process.c diff --git a/src/msg/msg_process.c b/src/msg/msg_process.c index 2ce1d5d8b1..2834674865 100644 --- a/src/msg/msg_process.c +++ b/src/msg/msg_process.c @@ -488,3 +488,12 @@ int MSG_process_is_suspended(m_process_t process) smx_context_t MSG_process_get_smx_ctx(m_process_t process) { return SIMIX_process_get_context(process); } +/** + * \ingroup m_process_management + * \brief Add a function to the list of "on_exit" functions for the current process. + * The on_exit functions are the functions executed when your process is killed. + * You should use them to free the data used by your process. + */ +void MSG_process_on_exit_add(int_f_pvoid_t fun, void *data) { + SIMIX_process_on_exit_add(fun,data); +}