X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d2d9f8b0f434e881d124d81f655fc9ebb6f31199..15c81e44412415173de220954a453019c68714cd:/src/msg/msg_global.c diff --git a/src/msg/msg_global.c b/src/msg/msg_global.c index a6356c9ed1..b10d9c421b 100644 --- a/src/msg/msg_global.c +++ b/src/msg/msg_global.c @@ -67,6 +67,7 @@ void MSG_global_init(int *argc, char **argv) msg_global->max_channel = 0; msg_global->PID = 1; msg_global->sent_msg = 0; + msg_global->task_copy_callback = NULL; /* initialization of the action module */ _MSG_action_init(); @@ -153,6 +154,37 @@ MSG_error_t MSG_main(void) return MSG_OK; } +MSG_error_t MSG_main_stateful(void) +{ + /* Clean IO before the run */ + fflush(stdout); + fflush(stderr); + + if (MC_IS_ENABLED) { + MC_modelcheck_stateful(); + } + else { + SIMIX_run(); + } + return MSG_OK; +} + + +MSG_error_t MSG_main_liveness(xbt_automaton_t a, char *prgm) +{ + /* Clean IO before the run */ + fflush(stdout); + fflush(stderr); + + if (MC_IS_ENABLED) { + MC_modelcheck_liveness(a, prgm); + } + else { + SIMIX_run(); + } + return MSG_OK; +} + /** \ingroup msg_simulation * \brief Kill all running process @@ -178,6 +210,7 @@ int MSG_process_killall(int reset_PIDs) */ MSG_error_t MSG_clean(void) { + XBT_DEBUG("Closing MSG"); #ifdef HAVE_TRACING TRACE_surf_release();