version 1.1.2.4, 2011/09/09 14:47:41
|
version 1.1.2.5, 2011/09/09 14:49:17
|
Line 7
|
Line 7
|
#include <netinet/in.h> |
#include <netinet/in.h> |
#include <aitsched.h> |
#include <aitsched.h> |
|
|
|
intptr_t Kill; |
|
|
void *event(sched_task_t *arg) |
void *event(sched_task_t *arg) |
{ |
{ |
printf("Event::\n"); |
printf("Event::\n"); |
Line 28 void *timer(sched_task_t *arg)
|
Line 30 void *timer(sched_task_t *arg)
|
void *r(sched_task_t *arg) |
void *r(sched_task_t *arg) |
{ |
{ |
printf("read::\n"); |
printf("read::\n"); |
|
Kill++; |
return NULL; |
return NULL; |
} |
} |
|
|
Line 93 main(int argc, char **argv)
|
Line 96 main(int argc, char **argv)
|
|
|
schedCallOnce(root, once, "000000", 42); |
schedCallOnce(root, once, "000000", 42); |
|
|
schedRun(root, NULL); | schedRun(root, &Kill); |
schedEnd(&root); |
schedEnd(&root); |
|
|
close(f); |
close(f); |