diff options
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/os/os_thread.h | 5 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_queue.c | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/gallium/auxiliary/os/os_thread.h b/src/gallium/auxiliary/os/os_thread.h index bb767fa12d2..2aad3e2d728 100644 --- a/src/gallium/auxiliary/os/os_thread.h +++ b/src/gallium/auxiliary/os/os_thread.h @@ -68,11 +68,6 @@ static inline thrd_t pipe_thread_create(int (*routine)(void *), void *param) return thread; } -static inline int pipe_thread_wait( thrd_t thread ) -{ - return thrd_join( thread, NULL ); -} - static inline int pipe_thread_destroy( thrd_t thread ) { return thrd_detach( thread ); diff --git a/src/gallium/auxiliary/util/u_queue.c b/src/gallium/auxiliary/util/u_queue.c index a3aed29795b..9565c538260 100644 --- a/src/gallium/auxiliary/util/u_queue.c +++ b/src/gallium/auxiliary/util/u_queue.c @@ -272,7 +272,7 @@ util_queue_killall_and_wait(struct util_queue *queue) mtx_unlock(&queue->lock); for (i = 0; i < queue->num_threads; i++) - pipe_thread_wait(queue->threads[i]); + thrd_join(queue->threads[i], NULL); queue->num_threads = 0; } |