nthsleep!!!

This commit is contained in:
Mylloon 2024-04-21 14:36:54 +02:00
parent 1ab599d606
commit f5e7a51861
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -61,6 +61,8 @@ sched_init(int nthreads, int qlen, taskfunc f, void *closure)
}
sched.nthreads = nthreads;
sched.nthsleep = 0;
if(pthread_mutex_init(&sched.mutex, NULL) != 0) {
fprintf(stderr, "Can't init mutex\n");
return -1;