This commit is contained in:
Mylloon 2024-04-21 19:29:21 +02:00
parent 1b6db69cd2
commit de2888683a
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -107,6 +107,7 @@ sched_init(int nthreads, int qlen, taskfunc f, void *closure)
return sched_init_cleanup(-1);
}
// Créer les threads
if(!(sched.threads = malloc(sched.nthreads * sizeof(pthread_t *)))) {
perror("Threads");
return sched_init_cleanup(-1);