+ claire comme ça

This commit is contained in:
Mylloon 2024-04-21 15:08:58 +02:00
parent 01e1345069
commit 26b536958d
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -195,7 +195,8 @@ sched_spawn(taskfunc f, void *closure, struct scheduler *s)
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_mutex_unlock(&s->mutex[0]);