From 1e0314281a7d2e57b0e0ad2296445dffdb26dbd2 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Sun, 5 Mar 2017 10:41:30 +1100 Subject: gallium/util: replace pipe_condvar_destroy() with cnd_destroy() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pipe_condvar_destroy() was made unnecessary with fd33a6bcd7f12. Reviewed-by: Emil Velikov Reviewed-by: Marek Olšák --- src/gallium/auxiliary/util/u_queue.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gallium/auxiliary/util/u_queue.c') diff --git a/src/gallium/auxiliary/util/u_queue.c b/src/gallium/auxiliary/util/u_queue.c index dff5b154cac..87f0120d888 100644 --- a/src/gallium/auxiliary/util/u_queue.c +++ b/src/gallium/auxiliary/util/u_queue.c @@ -122,7 +122,7 @@ void util_queue_fence_destroy(struct util_queue_fence *fence) { assert(fence->signalled); - pipe_condvar_destroy(fence->cond); + cnd_destroy(&fence->cond); pipe_mutex_destroy(fence->mutex); } @@ -249,8 +249,8 @@ fail: FREE(queue->threads); if (queue->jobs) { - pipe_condvar_destroy(queue->has_space_cond); - pipe_condvar_destroy(queue->has_queued_cond); + cnd_destroy(&queue->has_space_cond); + cnd_destroy(&queue->has_queued_cond); pipe_mutex_destroy(queue->lock); FREE(queue->jobs); } @@ -281,8 +281,8 @@ util_queue_destroy(struct util_queue *queue) util_queue_killall_and_wait(queue); remove_from_atexit_list(queue); - pipe_condvar_destroy(queue->has_space_cond); - pipe_condvar_destroy(queue->has_queued_cond); + cnd_destroy(&queue->has_space_cond); + cnd_destroy(&queue->has_queued_cond); pipe_mutex_destroy(queue->lock); FREE(queue->jobs); FREE(queue->threads); -- cgit v1.2.3