#include "private.h"
#include "xbt/sysdep.h"
#include "xbt/log.h"
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(global, msg,
- "Logging specific to MSG (global)");
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_kernel, msg,
+ "Logging specific to MSG (kernel)");
int __stop_at_time = -1.0 ;
* \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 <!-- DOXYGEN_NAVBAR_LABEL="Simulation functions" --> \endhtmlonly
*/
/********************************* MSG **************************************/
"% EntityType string\n"
"% Container string\n"
"% Value string\n"
+ "% TaskName string\n"
"%EndEventDef\n"
"%EventDef PajePopState 12\n"
"% Time date\n"
/** \defgroup m_channel_management Understanding channels
* \brief This section briefly describes the channel notion of MSG
* (#m_channel_t).
+ * \htmlonly <!-- DOXYGEN_NAVBAR_LABEL="Channels" --> \endhtmlonly
+ *
*
* For convenience, the simulator provides the notion of channel
* that is close to the tag notion in MPI. A channel is not a
}
if(!state_modifications) {
- DEBUG1("%g : Calling surf_solve",MSG_get_clock());
+ DEBUG1("%f : Calling surf_solve",MSG_get_clock());
elapsed_time = surf_solve();
- DEBUG1("Elapsed_time %g",elapsed_time);
+ DEBUG1("Elapsed_time %f",elapsed_time);
if (elapsed_time<0.0) {
/* fprintf(stderr, "We're done %g\n",elapsed_time); */
}
}
if(XBT_LOG_ISENABLED(msg, xbt_log_priority_debug) ||
- XBT_LOG_ISENABLED(global, xbt_log_priority_debug)) {
+ XBT_LOG_ISENABLED(msg_kernel, xbt_log_priority_debug)) {
DEBUG0("Aborting!");
xbt_abort();
}
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);
}
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();