diff --git a/includes/sched.h b/includes/sched.h index 359c837..32738ec 100644 --- a/includes/sched.h +++ b/includes/sched.h @@ -7,6 +7,7 @@ struct scheduler; typedef void (*taskfunc)(void *, struct scheduler *); +/* Renvoie le nombre de coeurs disponible. */ static inline int sched_default_threads(void) { @@ -31,5 +32,5 @@ int sched_init(int nthreads, int qlen, taskfunc f, void *closure); * * Peut renvoyer -1 avec errno = EAGAIN quand on dépasse la capacité de * l'ordonanceur - * */ + */ int sched_spawn(taskfunc f, void *closure, struct scheduler *s);