util/queue: handle thread cration failure in util_queue_adjust_num_threads
authorGreg Depoire--Ferrer <greg.depoire@gmail.com>
Fri, 18 Feb 2022 00:11:17 +0000 (01:11 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 13 May 2022 19:35:11 +0000 (19:35 +0000)
commit969dfabc7796fab9f43b5e320c8d3506b4e29ba4
treef3b5ac5c21c3a2e285bff9baa983472ee4044076
parentd3bef6ba73c600b2711a578af11f29d9f779c637
util/queue: handle thread cration failure in util_queue_adjust_num_threads

If a thread cannot be created, make sure the num_threads field is
updated to reflect the actual number of threads.

Signed-off-by: Greg Depoire--Ferrer <greg.depoire@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15071>
src/util/u_queue.c