X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/79adfdb539deedcac38651c4f8c9b0a8767beb23..5c856ab29791883f3ca4f8d526bac816cb08546d:/src/msg/m_process.c diff --git a/src/msg/m_process.c b/src/msg/m_process.c index af8e8132ed..924f80db5b 100644 --- a/src/msg/m_process.c +++ b/src/msg/m_process.c @@ -51,7 +51,6 @@ static void MSG_process_cleanup(void *arg) xbt_free(arg); } - m_process_t MSG_process_create_with_arguments(const char *name, m_process_code_t code, void *data, m_host_t host, int argc, char **argv) @@ -99,6 +98,13 @@ m_process_t MSG_process_create_with_arguments(const char *name, return process; } +void MSG_process_free(m_process_t process) +{ + xbt_fifo_remove(msg_global->process_list,process); + xbt_context_free(process->simdata->context); + MSG_process_cleanup(process); +} + /** \ingroup m_process_management * \brief Migrates an agent to another location. *