--- libaitsched/example/test_time.c 2012/07/24 13:47:01 1.4.6.1 +++ libaitsched/example/test_time.c 2012/08/08 23:04:41 1.7 @@ -19,9 +19,10 @@ void *event(sched_task_t *arg) return NULL; } -void *eventlo(sched_task_t *arg) +void *regular(sched_task_t *arg) { - printf("EventLOW::\n"); + printf("Task(%lu):: %s\n", TASK_VAL(arg), (char*) TASK_ARG(arg)); + fflush(stdout); return NULL; } @@ -138,7 +139,19 @@ main(int argc, char **argv) return 2; } - if (!schedEventLo(root, eventlo, "piuk", 1111, NULL, 0)) { + if (!schedTask(root, regular, "piuk", 11, NULL, 0)) { + printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError()); + return 3; + } + if (!schedTask(root, regular, "piuk", 1, NULL, 0)) { + printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError()); + return 3; + } + if (!schedTask(root, regular, "piuk", 0, NULL, 0)) { + printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError()); + return 3; + } + if (!schedTask(root, regular, "piuk", 1000001, NULL, 0)) { printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError()); return 3; }