This commit is contained in:
Mylloon 2024-04-20 21:15:31 +02:00
parent fb7eb7e6ae
commit a7d1ca5964
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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);