+ claire comme ça
This commit is contained in:
parent
01e1345069
commit
26b536958d
1 changed files with 2 additions and 1 deletions
|
@ -195,7 +195,8 @@ sched_spawn(taskfunc f, void *closure, struct scheduler *s)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
s->tasks[0][++s->top[0]] = (struct task_info){closure, f};
|
s->top[0]++;
|
||||||
|
s->tasks[0][s->top[0]] = (struct task_info){closure, f};
|
||||||
|
|
||||||
pthread_cond_signal(&s->cond[0]);
|
pthread_cond_signal(&s->cond[0]);
|
||||||
pthread_mutex_unlock(&s->mutex[0]);
|
pthread_mutex_unlock(&s->mutex[0]);
|
||||||
|
|
Reference in a new issue