Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add sg_actor_exit and sg_actor_on_exit
[simgrid.git] / src / msg / msg_process.cpp
index 1c349b0..7b1055e 100644 (file)
@@ -101,12 +101,3 @@ xbt_dynar_t MSG_processes_as_dynar() {
   }
   return res;
 }
-
-/** @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(int_f_int_pvoid_t fun, void* data)
-{
-  simgrid::s4u::this_actor::on_exit([fun, data](bool failed) { fun(failed ? 1 /*FAILURE*/ : 0 /*SUCCESS*/, data); });
-}