projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sched: Rename new_post_select back to post_select.
[paraslash.git]
/
sched.h
diff --git
a/sched.h
b/sched.h
index
da20e30
..
9c5c098
100644
(file)
--- a/
sched.h
+++ b/
sched.h
@@
-55,12
+55,13
@@
struct task {
*/
void (*pre_select)(struct sched *s, struct task *t);
/**
*/
void (*pre_select)(struct sched *s, struct task *t);
/**
- * The
newer variant of the
post select hook of \a t.
+ * The post select hook of \a t.
*
*
- * This hook must return the error code rather than store it in
- * t->error.
+ * Its purpose is to evaluate and act upon the results of the previous
+ * select call. If this function returns a negative value, the
+ * scheduler unregisters the task.
*/
*/
- int (*
new_
post_select)(struct sched *s, struct task *t);
+ int (*post_select)(struct sched *s, struct task *t);
/** Whether this task is in error state. */
int error;
/** Position of the task in the pre_select list of the scheduler. */
/** Whether this task is in error state. */
int error;
/** Position of the task in the pre_select list of the scheduler. */