]> xenbits.xensource.com Git - libvirt.git/commit
threadpool: Don't wait on condition if pool has no workers
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 9 Dec 2011 14:12:37 +0000 (15:12 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 9 Dec 2011 14:25:46 +0000 (15:25 +0100)
commit3b0bb65dd4c5e159956c44e99ae5dd24758e68be
tree2a6dbed4189e2dbb48af3ad9e51f6b61b66a0dd0
parent2d5046d31f4f5c961fc4aa6b415a00bb9eadae2b
threadpool: Don't wait on condition if pool has no workers

Pool creates new workers dynamically. However, it is possible
for a pool to have no workers. If we want to free that pool,
we don't want to wait on quit condition as it will never be
signaled.
src/util/threadpool.c