--- libaitsched/example/test.c 2011/09/09 14:47:41 1.1.2.4 +++ libaitsched/example/test.c 2011/09/09 14:49:17 1.1.2.5 @@ -7,6 +7,8 @@ #include #include +intptr_t Kill; + void *event(sched_task_t *arg) { printf("Event::\n"); @@ -28,6 +30,7 @@ void *timer(sched_task_t *arg) void *r(sched_task_t *arg) { printf("read::\n"); + Kill++; return NULL; } @@ -93,7 +96,7 @@ main(int argc, char **argv) schedCallOnce(root, once, "000000", 42); - schedRun(root, NULL); + schedRun(root, &Kill); schedEnd(&root); close(f);