X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=sched.c;h=d42e149801e4a7ecabd4f96cc1f79802eb7a4ff1;hp=50e87b54e46d71162103776a7e499dd9435cfb1d;hb=076b70b07967fbea52a30de5ffb4f6805a64eb87;hpb=74c88020bd325865fe26ed25ea8ad0ace0924136 diff --git a/sched.c b/sched.c index 50e87b54..d42e1498 100644 --- a/sched.c +++ b/sched.c @@ -36,7 +36,7 @@ static void unregister_task(struct task *t) para_strerror(-t->error)); if (t->pre_select) list_del(&t->pre_select_node); - if (t->new_post_select) + if (t->post_select) list_del(&t->post_select_node); } @@ -62,13 +62,13 @@ static void sched_preselect(struct sched *s) static inline void call_post_select(struct sched *s, struct task *t) { #ifndef SCHED_DEBUG - t->error = t->new_post_select(s, t); + t->error = t->post_select(s, t); #else struct timeval t1, t2, diff; unsigned long pst; clock_get_realtime(&t1); - t->error = t->new_post_select(s, t); + t->error = t->post_select(s, t); clock_get_realtime(&t2); tv_diff(&t1, &t2, &diff); pst = tv2ms(&diff); @@ -165,8 +165,8 @@ void register_task(struct sched *s, struct task *t) PARA_DEBUG_LOG("pre_select: %p\n", &t->pre_select); list_add_tail(&t->pre_select_node, &s->pre_select_list); } - if (t->new_post_select) { - PARA_DEBUG_LOG("post_select: %p\n", &t->new_post_select); + if (t->post_select) { + PARA_DEBUG_LOG("post_select: %p\n", &t->post_select); list_add_tail(&t->post_select_node, &s->post_select_list); } }