X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/581f7e0bfc3cae71b1e7c39a0c6af6b790e7b0a2..444fd32bb5976fd3fd81197e6c321f21a5ed34b2:/src/msg/global.c diff --git a/src/msg/global.c b/src/msg/global.c index 32967aed1a..4f0cf72bb6 100644 --- a/src/msg/global.c +++ b/src/msg/global.c @@ -22,6 +22,7 @@ MSG_Global_t msg_global = NULL; * \brief This section describes the functions you need to know to * set up a simulation. You should have a look at \ref MSG_examples * to have an overview of their usage. + * \htmlonly \endhtmlonly */ /********************************* MSG **************************************/ @@ -205,7 +206,7 @@ void MSG_paje_output(const char *filename) len = strlen(filename); if((len \endhtmlonly + * * * For convenience, the simulator provides the notion of channel * that is close to the tag notion in MPI. A channel is not a @@ -302,7 +305,7 @@ MSG_error_t MSG_main(void) } while ((process = xbt_fifo_pop(msg_global->process_to_run))) { - DEBUG3("Scheduling %s(%d) on %s", + DEBUG3("Scheduling %s(%d) on %s", process->name,process->simdata->PID, process->simdata->host->name); msg_global->current_process = process; @@ -466,7 +469,7 @@ int MSG_process_killall(int reset_PIDs) m_process_t p = NULL; m_process_t self = MSG_process_self(); - while((p=xbt_fifo_shift(msg_global->process_list))) { + while((p=xbt_fifo_pop(msg_global->process_list))) { if(p!=self) MSG_process_kill(p); } @@ -494,7 +497,7 @@ MSG_error_t MSG_clean(void) m_process_t p = NULL; - while((p=xbt_fifo_shift(msg_global->process_list))) { + while((p=xbt_fifo_pop(msg_global->process_list))) { MSG_process_kill(p); } xbt_context_exit();