X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=sched.h;fp=sched.h;h=fd714b618b681720b4ee187401f57d39fbd001f7;hp=40524845fdaa63b898684c2d7b1abeb650f5b9b1;hb=8bf35b38357c3ce59f52ae87f6e84e4b6d183ac7;hpb=a96be5bc4fda8c0df5370d646defb5ff632ba391 diff --git a/sched.h b/sched.h index 40524845..fd714b61 100644 --- a/sched.h +++ b/sched.h @@ -55,6 +55,8 @@ struct task { int notification; /** Whether the task structure should be freed in sched_shutdown(). */ bool owned_by_sched; + /** True if task is in error state and exit status has been queried. */ + bool dead; /** Usually a pointer to the struct containing this task. */ void *context; }; @@ -104,6 +106,7 @@ char *get_task_list(struct sched *s); void task_notify(struct task *t, int err); void task_notify_all(struct sched *s, int err); int task_get_notification(const struct task *t); +int task_reap(struct task **tptr); void sched_min_delay(struct sched *s); void sched_request_timeout(struct timeval *to, struct sched *s); void sched_request_timeout_ms(long unsigned ms, struct sched *s);