nthsleep!!!
This commit is contained in:
parent
1ab599d606
commit
f5e7a51861
1 changed files with 2 additions and 0 deletions
|
@ -61,6 +61,8 @@ sched_init(int nthreads, int qlen, taskfunc f, void *closure)
|
||||||
}
|
}
|
||||||
sched.nthreads = nthreads;
|
sched.nthreads = nthreads;
|
||||||
|
|
||||||
|
sched.nthsleep = 0;
|
||||||
|
|
||||||
if(pthread_mutex_init(&sched.mutex, NULL) != 0) {
|
if(pthread_mutex_init(&sched.mutex, NULL) != 0) {
|
||||||
fprintf(stderr, "Can't init mutex\n");
|
fprintf(stderr, "Can't init mutex\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Reference in a new issue