--- libaitsched/example/test.c 2011/08/12 23:06:55 1.1 +++ libaitsched/example/test.c 2011/08/12 23:06:55 1.1.2.1 @@ -0,0 +1,27 @@ +#include +#include + +void *event(void *arg) +{ + return NULL; +} + +int +main(int argc, char **argv) +{ + sched_root_task_t *root; + + root = schedBegin(); + if (!root) { + printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError()); + return 1; + } + + if (!schedEvent(root, event, "piuk", 1234)) { + printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError()); + return 2; + } + + schedEnd(root); + return 0; +}