util/u_queue: skip util_queue_finish if num_threads is 0
authorMarek Olšák <marek.olsak@amd.com>
Thu, 24 Oct 2019 01:01:38 +0000 (21:01 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 24 Oct 2019 01:11:17 +0000 (21:11 -0400)
commitc2efd2cbfb19808cd4bf5f2f0cf62455f80f1a2f
tree5ff722202fd61b933e25fd91268510db745da3b2
parente096011def908b4ac08c8e7437ffaf8bd7f46819
util/u_queue: skip util_queue_finish if num_threads is 0

This fixes a deadlock in pthread_barrier_destroy.

Cc: 19.1 19.2 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/util/u_queue.c