diff options
author | Timothy Arceri <[email protected]> | 2017-03-05 10:41:32 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-07 08:23:26 +1100 |
commit | 5e56c2c79d6d7e59d9098b79912149b00973251d (patch) | |
tree | fb3427be7c32ec0e0f193296cb02a564c092e1fe /src/gallium/auxiliary | |
parent | 74c879ac75d5e9262b668c8c6fdaa5d36e3c3bf3 (diff) |
gallium/util: replace pipe_condvar_signal() with cnd_signal()
pipe_condvar_signal() was made unnecessary with fd33a6bcd7f12.
Reviewed-by: Emil Velikov <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
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 | 4 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_ringbuffer.c | 4 |
3 files changed, 5 insertions, 8 deletions
diff --git a/src/gallium/auxiliary/os/os_thread.h b/src/gallium/auxiliary/os/os_thread.h index 6895f4e97f4..a8b5d926342 100644 --- a/src/gallium/auxiliary/os/os_thread.h +++ b/src/gallium/auxiliary/os/os_thread.h @@ -148,9 +148,6 @@ __pipe_mutex_assert_locked(pipe_mutex *mutex) */ typedef cnd_t pipe_condvar; -#define pipe_condvar_signal(cond) \ - cnd_signal(&(cond)) - #define pipe_condvar_broadcast(cond) \ cnd_broadcast(&(cond)) @@ -264,7 +261,7 @@ pipe_semaphore_signal(pipe_semaphore *sema) { pipe_mutex_lock(sema->mutex); sema->counter++; - pipe_condvar_signal(sema->cond); + cnd_signal(&sema->cond); pipe_mutex_unlock(sema->mutex); } diff --git a/src/gallium/auxiliary/util/u_queue.c b/src/gallium/auxiliary/util/u_queue.c index 8fc2f3b3bb2..3cef7d200ba 100644 --- a/src/gallium/auxiliary/util/u_queue.c +++ b/src/gallium/auxiliary/util/u_queue.c @@ -168,7 +168,7 @@ static PIPE_THREAD_ROUTINE(util_queue_thread_func, input) queue->read_idx = (queue->read_idx + 1) % queue->max_jobs; queue->num_queued--; - pipe_condvar_signal(queue->has_space_cond); + cnd_signal(&queue->has_space_cond); pipe_mutex_unlock(queue->lock); if (job.job) { @@ -316,7 +316,7 @@ util_queue_add_job(struct util_queue *queue, queue->write_idx = (queue->write_idx + 1) % queue->max_jobs; queue->num_queued++; - pipe_condvar_signal(queue->has_queued_cond); + cnd_signal(&queue->has_queued_cond); pipe_mutex_unlock(queue->lock); } diff --git a/src/gallium/auxiliary/util/u_ringbuffer.c b/src/gallium/auxiliary/util/u_ringbuffer.c index adba9ead773..a97236fe54c 100644 --- a/src/gallium/auxiliary/util/u_ringbuffer.c +++ b/src/gallium/auxiliary/util/u_ringbuffer.c @@ -102,7 +102,7 @@ void util_ringbuffer_enqueue( struct util_ringbuffer *ring, /* Signal change: */ - pipe_condvar_signal(ring->change); + cnd_signal(&ring->change); pipe_mutex_unlock(ring->mutex); } @@ -154,7 +154,7 @@ enum pipe_error util_ringbuffer_dequeue( struct util_ringbuffer *ring, out: /* Signal change: */ - pipe_condvar_signal(ring->change); + cnd_signal(&ring->change); pipe_mutex_unlock(ring->mutex); return ret; } |