mirror of
https://github.com/Pithikos/C-Thread-Pool
synced 2024-11-29 16:53:18 +03:00
Merge pull request #15 from zweng/master
initilise jobqueue_p->len to 0
This commit is contained in:
commit
9151cd1b7d
2
thpool.c
2
thpool.c
@ -410,7 +410,7 @@ static int jobqueue_init(thpool_* thpool_p){
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
bsem_init(thpool_p->jobqueue_p->has_jobs, 0);
|
bsem_init(thpool_p->jobqueue_p->has_jobs, 0);
|
||||||
|
thpool_p->jobqueue_p->len = 0;
|
||||||
jobqueue_clear(thpool_p);
|
jobqueue_clear(thpool_p);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user