mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
st/nine: clean up thead shutdown sequence a bit
Just break out of the loop instead, it does the same thing. Signed-off-by: Andre Heider <a.heider@gmail.com> Reviewed-by: Axel Davy <davyaxel0@gmail.com>
This commit is contained in:
parent
123bf9cbe7
commit
414470854d
1 changed files with 2 additions and 4 deletions
|
|
@ -52,10 +52,8 @@ threadpool_worker(void *data)
|
|||
while (!pool->workqueue && !pool->shutdown)
|
||||
pthread_cond_wait(&pool->new_work, &pool->m);
|
||||
|
||||
if (pool->shutdown) {
|
||||
pthread_mutex_unlock(&pool->m);
|
||||
return NULL;
|
||||
}
|
||||
if (pool->shutdown)
|
||||
break;
|
||||
|
||||
/* Pull the first task from the list. We don't free it -- it now lacks
|
||||
* a reference other than the worker creator's, whose responsibility it
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue