--- libaitsched/example/test_time.c 2013/08/15 18:14:54 1.10.8.2 +++ libaitsched/example/test_time.c 2013/08/15 18:39:00 1.10.8.3 @@ -34,7 +34,7 @@ void *timer(sched_task_t *arg) void *rtc(sched_task_t *arg) { - printf("RTC %p sec::\n", TASK_ARG(arg)); + printf("RTC %p sec:: rtc id %lx\n", TASK_ARG(arg), (long) TASK_DATA(arg)); taskExit(arg, NULL); } @@ -195,6 +195,7 @@ main(int argc, char **argv) return 4; } + /* if (!schedRTC(root, rtc, (void*) (intptr_t) ts.tv_sec, ts, (void*) 3, 0)) { printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError()); return 4; @@ -203,6 +204,7 @@ main(int argc, char **argv) printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError()); return 4; } + */ if (!schedAlarm(root, alarmz, (void*) (intptr_t) ts.tv_sec, ts, NULL, 0)) { printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError());