X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2be0e4648c5b7055580df1c265b7c43ee6763a46..669455c3bd567e8e5543934aa2960d48321581de:/src/msg/msg_global.c diff --git a/src/msg/msg_global.c b/src/msg/msg_global.c index 404d8bf446..7b0c29e6ac 100644 --- a/src/msg/msg_global.c +++ b/src/msg/msg_global.c @@ -68,6 +68,7 @@ void MSG_global_init(int *argc, char **argv) msg_global->PID = 1; msg_global->sent_msg = 0; msg_global->task_copy_callback = NULL; + msg_global->process_data_cleanup = NULL; /* initialization of the action module */ _MSG_action_init(); @@ -75,7 +76,6 @@ void MSG_global_init(int *argc, char **argv) SIMIX_function_register_process_create(MSG_process_create_from_SIMIX); SIMIX_function_register_process_cleanup(MSG_process_cleanup_from_SIMIX); SIMIX_function_register_process_kill(MSG_process_kill_from_SIMIX); - SIMIX_comm_set_copy_data_callback(MSG_comm_copy_data_from_SIMIX); } #ifdef HAVE_TRACING TRACE_start(); @@ -112,6 +112,7 @@ void MSG_global_init(int *argc, char **argv) */ MSG_error_t MSG_set_channel_number(int number) { + XBT_WARN("DEPRECATED! Now use alias"); xbt_assert((msg_global) && (msg_global->max_channel == 0), "Channel number already set!"); @@ -130,6 +131,7 @@ MSG_error_t MSG_set_channel_number(int number) */ int MSG_get_channel_number(void) { + XBT_WARN("DEPRECATED! Now use alias"); xbt_assert((msg_global) && (msg_global->max_channel != 0), "Channel number not set yet!"); @@ -195,7 +197,7 @@ MSG_error_t MSG_main_liveness(xbt_automaton_t a, char *prgm) */ int MSG_process_killall(int reset_PIDs) { - SIMIX_req_process_killall(); + simcall_process_killall(); if (reset_PIDs > 0) { msg_global->PID = reset_PIDs;