make the program compile
This commit is contained in:
parent
0d8f77f9fb
commit
24a3954eed
2 changed files with 14 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
struct scheduler;
|
struct scheduler;
|
||||||
|
@ -24,5 +25,9 @@ static inline int sched_default_threads() {
|
||||||
*/
|
*/
|
||||||
int sched_init(int nthreads, int qlen, taskfunc f, void *closure);
|
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);
|
int sched_spawn(taskfunc f, void *closure, struct scheduler *s);
|
||||||
|
|
|
@ -1 +1,9 @@
|
||||||
#include "../includes/sched.h"
|
#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;
|
||||||
|
}
|
||||||
|
|
Reference in a new issue