Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Implement SD_task_schedule, SD_task_unschedule and other SimDag stuff.
[simgrid.git] / testsuite / simdag / sd_test.c
index cf0b64a..3d13f81 100644 (file)
@@ -26,11 +26,19 @@ int main(int argc, char **argv) {
   SD_create_environment(platform_file);
 
   /* creation of the tasks and their dependencies */
-  
+  SD_task_t task1 = SD_task_create("Task 1", NULL, 10.0);
 
+  /* watch points */
+  SD_task_watch(task1, SD_SCHEDULED);
+  SD_task_watch(task1, SD_DONE);
+  SD_task_unwatch(task1, SD_SCHEDULED);
+  SD_task_watch(task1, SD_DONE);
+  SD_task_watch(task1, SD_SCHEDULED);
+  
   /* let's launch the simulation! */
   SD_simulate(100);
 
-  SD_clean();
+  SD_task_destroy(task1);
+  SD_exit();
   return 0;
 }