Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
final revalidation of this multi-example
[simgrid.git] / examples / simdag / dot / dot_test2.c
index b9baad1..c2457f2 100644 (file)
@@ -51,7 +51,8 @@ int main(int argc, char **argv)
     SD_task_dump(task);
   }
 
-  xbt_dynar_foreach(dot, cursor, task) {
+  cursor=0;
+  while ((task=dot_as_array[cursor++])){
     SD_task_destroy(task);
   }