X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=sched.c;h=2c49050cb6408085c02951b170d49d34d11169b2;hp=c2a0e64b16326c5ce4f28b20cb4a048ae6322d30;hb=e402aa45bbac0b078fefc88ed6dd108cbae6e743;hpb=639a90049f74b4ce528376afe8ec8e84edf16208 diff --git a/sched.c b/sched.c index c2a0e64b..2c49050c 100644 --- a/sched.c +++ b/sched.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006 Andre Noll + * Copyright (C) 2006-2007 Andre Noll * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -65,7 +65,9 @@ static void sched_post_select(struct sched *s) /** * the core function for all paraslash programs * - * Short and sweet. It updates the global \a now pointer, calls all registered + * \param s pointer to the scheduler struct + * + * This function updates the global \a now pointer, calls all registered * pre_select hooks which may set the timeout and add any file descriptors to * the fd sets of \a s. Next, it calls para_select() and makes the result available * to the registered tasks by calling their post_select hook. @@ -125,11 +127,11 @@ void register_task(struct task *t) PARA_INFO_LOG("registering %s (%p)\n", t->status, t); if (t->pre_select) { PARA_DEBUG_LOG("pre_select: %p\n", &t->pre_select); - list_add(&t->pre_select_node, &pre_select_list); + para_list_add(&t->pre_select_node, &pre_select_list); } if (t->post_select) { PARA_DEBUG_LOG("post_select: %p\n", &t->pre_select); - list_add(&t->post_select_node, &post_select_list); + para_list_add(&t->post_select_node, &post_select_list); } }