From a7d1ca59641ba6e3fb403b1adf9ffe65a41594d7 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 20 Apr 2024 21:15:31 +0200 Subject: [PATCH] comments --- includes/sched.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);