X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=sched.c;h=42c5f14215df5e3f28ff91c11469b5dacf9f2e4a;hp=144eaf6e21a670d1243a07d00689cf6a3fbd1900;hb=1bb45ec1b6bccf422e055e66ab458468a03b4419;hpb=471684761a2039bbc89aa1e3c33c62de6bef86cf diff --git a/sched.c b/sched.c index 144eaf6e..42c5f142 100644 --- a/sched.c +++ b/sched.c @@ -1,12 +1,15 @@ /* - * Copyright (C) 2006-2007 Andre Noll + * Copyright (C) 2006-2008 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ /** \file sched.c paraslash's scheduling functions */ +#include /* readdir() */ +#include #include + #include "para.h" #include "ipc.h" #include "fd.h" @@ -65,7 +68,7 @@ static void sched_post_select(struct sched *s) * * \sa task, now. */ -int sched(struct sched *s) +int schedule(struct sched *s) { if (!initialized) return -E_NOT_INITIALIZED; @@ -145,7 +148,7 @@ void unregister_task(struct task *t) /** * unregister all tasks * - * This will cause \a sched() to return immediately because both the + * This will cause \a schedule() to return immediately because both the * \a pre_select_list and the \a post_select_list are empty. */ void sched_shutdown(void)