X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=sched.h;h=4d57c75f3e3bf9b3076e60012bd80fba7cb4567c;hp=86afc6fca3ed48defaaf164e929164d77a2d56fc;hb=9ca92b91c68fb59989f317fea5e7c5e36cab7458;hpb=32d43fac23025e82b7a92bfce744207c69165a04 diff --git a/sched.h b/sched.h index 86afc6fc..4d57c75f 100644 --- a/sched.h +++ b/sched.h @@ -27,6 +27,8 @@ struct sched { fd_set wfds; /** Highest numbered file descriptor in any of the above fd sets. */ int max_fileno; + /** In non-NULL, use this function instead of para_select. */ + int (*select_function)(int, fd_set *, fd_set *, struct timeval *); }; /** @@ -73,7 +75,6 @@ struct task { extern struct timeval *now; void register_task(struct task *t); -void unregister_task(struct task *t); int schedule(struct sched *s); char *get_task_list(void); int kill_task(char *id);