Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix race condition.
[simgrid.git] / teshsuite / msg / task_destroy_cancel / task_destroy_cancel.c
index 6dda8b5..2081663 100644 (file)
@@ -114,6 +114,7 @@ int slave(int argc, char *argv[])
 
     if (!strcmp(MSG_task_get_name(task), "cancel")) {
       MSG_process_create("worker1", worker_main, task, MSG_host_self());
+      MSG_process_sleep(0.1);
       XBT_INFO("Canceling task \"%s\"", task->name);
       MSG_task_cancel(task);
       continue;