![]() ![]() | ![]() |
version 1.1, 2011/08/12 23:06:55 | version 1.1.2.1, 2011/08/12 23:06:55 |
---|---|
Line 0 | Line 1 |
#include <stdio.h> | |
#include <aitsched.h> | |
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; | |
} |