--- libaitsched/example/test_time.c 2012/05/10 14:30:31 1.1.2.1 +++ libaitsched/example/test_time.c 2012/05/14 12:07:08 1.1.2.4 @@ -3,7 +3,7 @@ #include #include #include -#include +#include #include #include @@ -47,7 +47,7 @@ main(int argc, char **argv) { sched_root_task_t *root; struct timespec ts = { 20, 0 }; - struct timespec p = { 0, 10000000 }; +// struct timespec p = { 0, 10000000 }; signal(SIGTERM, sig); @@ -85,7 +85,10 @@ main(int argc, char **argv) schedCallOnce(root, once, "000000", 42, NULL, 0); - schedPolling(root, &p, NULL); + printf("read_queue=%d timer_queue=%d\n", + ROOT_QUEUE_EMPTY(root, read), ROOT_QUEUE_EMPTY(root, timer)); + +// schedPolling(root, &p, NULL); schedRun(root, &Kill); schedEnd(&root); return 0;