X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ad452c358d2b00bbabcd8f10e54a36b3c56985de..2fad952ef4a63aedf6c8b2dc4e371de849f1e163:/src/msg/m_process.c diff --git a/src/msg/m_process.c b/src/msg/m_process.c index e8390ba512..50bd95c025 100644 --- a/src/msg/m_process.c +++ b/src/msg/m_process.c @@ -11,6 +11,17 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(m_process, msg, "Logging specific to MSG (process)"); +/** \defgroup m_process_management Management Functions of Agents + * \brief This section describes the agent structure of MSG + * (#m_process_t) and the functions for managing it. + * + * We need to simulate many independent scheduling decisions, so + * the concept of process is at the heart of the + * simulator. A process may be defined as a code, with + * some private data, executing in a location. + * \see m_process_t + */ + /******************************** Process ************************************/ /** \ingroup m_process_management * \brief Creates and runs a new #m_process_t. @@ -29,6 +40,10 @@ m_process_t MSG_process_create(const char *name, static void MSG_process_cleanup(void *arg) { + while(((m_process_t)arg)->simdata->paje_state) { + PAJE_PROCESS_POP_STATE((m_process_t)arg); + } + PAJE_PROCESS_FREE(arg); xbt_fifo_remove(msg_global->process_list, arg);