MSG_task_receive(&(task), "master_mailbox");
destination = (char*)MSG_task_get_data (task);
if (!destination) break; //there is no destination, die
MSG_task_receive(&(task), "master_mailbox");
destination = (char*)MSG_task_get_data (task);
if (!destination) break; //there is no destination, die
- INFO1("Migrating to %s", destination);
- MSG_process_change_host(MSG_get_host_by_name(destination));
+ XBT_INFO("Migrating to %s", destination);
+ MSG_process_migrate(MSG_process_self(), MSG_get_host_by_name(destination));
// I am the master of emigrant process,
// I tell it where it must emigrate to.
// I am the master of emigrant process,
// I tell it where it must emigrate to.
xbt_dynar_push_as (destinations, char*, xbt_strdup ("Tremblay"));
xbt_dynar_push_as (destinations, char*, xbt_strdup ("Jupiter"));
xbt_dynar_push_as (destinations, char*, xbt_strdup ("Fafard"));
xbt_dynar_push_as (destinations, char*, xbt_strdup ("Tremblay"));
xbt_dynar_push_as (destinations, char*, xbt_strdup ("Jupiter"));
xbt_dynar_push_as (destinations, char*, xbt_strdup ("Fafard"));
- CRITICAL1("Usage: %s platform_file deployment_file\n", argv[0]);
- CRITICAL1("example: %s msg_platform.xml msg_deployment_suspend.xml\n",
+ XBT_CRITICAL("Usage: %s platform_file deployment_file\n", argv[0]);
+ XBT_CRITICAL("example: %s msg_platform.xml msg_deployment_suspend.xml\n",