make the program compile

This commit is contained in:
Mylloon 2024-03-09 18:47:40 +01:00
parent 0d8f77f9fb
commit 24a3954eed
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 14 additions and 1 deletions

View file

@ -1,5 +1,6 @@
#pragma once
#include <errno.h>
#include <unistd.h>
struct scheduler;
@ -24,5 +25,9 @@ static inline int sched_default_threads() {
*/
int sched_init(int nthreads, int qlen, taskfunc f, void *closure);
/* Enfile une nouvelle tâche (f, closure) à l'ordonanceur (s) */
/* Enfile une nouvelle tâche (f, closure) à l'ordonanceur (s)
*
* 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);

View file

@ -1 +1,9 @@
#include "../includes/sched.h"
int sched_init(int nthreads, int qlen, taskfunc f, void *closure) {
return -1;
}
int sched_spawn(taskfunc f, void *closure, struct scheduler *s) {
return -1;
}