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;
};
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);