From f5e7a5186101fe7eeb88f29b7be1e2cef383d518 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 21 Apr 2024 14:36:54 +0200 Subject: [PATCH] nthsleep!!! --- src/sched.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sched.c b/src/sched.c index 1a37ba7..ca1f71f 100644 --- a/src/sched.c +++ b/src/sched.c @@ -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;