initilise jobqueue_p->len to 0

This commit is contained in:
zweng 2015-05-10 13:47:57 -04:00
parent 5aee2f2574
commit 18142eee71
1 changed files with 1 additions and 1 deletions

View File

@ -410,7 +410,7 @@ static int jobqueue_init(thpool_* thpool_p){
return -1;
}
bsem_init(thpool_p->jobqueue_p->has_jobs, 0);
thpool_p->jobqueue_p->len = 0;
jobqueue_clear(thpool_p);
return 0;
}