comments
This commit is contained in:
parent
fb7eb7e6ae
commit
a7d1ca5964
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@ struct scheduler;
|
||||||
|
|
||||||
typedef void (*taskfunc)(void *, struct scheduler *);
|
typedef void (*taskfunc)(void *, struct scheduler *);
|
||||||
|
|
||||||
|
/* Renvoie le nombre de coeurs disponible. */
|
||||||
static inline int
|
static inline int
|
||||||
sched_default_threads(void)
|
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
|
* Peut renvoyer -1 avec errno = EAGAIN quand on dépasse la capacité de
|
||||||
* l'ordonanceur
|
* l'ordonanceur
|
||||||
* */
|
*/
|
||||||
int sched_spawn(taskfunc f, void *closure, struct scheduler *s);
|
int sched_spawn(taskfunc f, void *closure, struct scheduler *s);
|
||||||
|
|
Reference in a new issue