diff options
author | Timothy Arceri <[email protected]> | 2017-03-05 10:41:31 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-07 08:23:26 +1100 |
commit | 74c879ac75d5e9262b668c8c6fdaa5d36e3c3bf3 (patch) | |
tree | 4600fd1eef8b5d964cfea8b10ba97286d6e0b292 /src/gallium/auxiliary/util/u_ringbuffer.c | |
parent | 1e0314281a7d2e57b0e0ad2296445dffdb26dbd2 (diff) |
gallium/util: replace pipe_condvar_wait() with cnd_wait()
pipe_condvar_wait() was made unnecessary with fd33a6bcd7f12.
Reviewed-by: Emil Velikov <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_ringbuffer.c')
-rw-r--r-- | src/gallium/auxiliary/util/u_ringbuffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_ringbuffer.c b/src/gallium/auxiliary/util/u_ringbuffer.c index 334be6a1d47..adba9ead773 100644 --- a/src/gallium/auxiliary/util/u_ringbuffer.c +++ b/src/gallium/auxiliary/util/u_ringbuffer.c @@ -85,7 +85,7 @@ void util_ringbuffer_enqueue( struct util_ringbuffer *ring, /* Wait for free space: */ while (util_ringbuffer_space(ring) < packet->dwords) - pipe_condvar_wait(ring->change, ring->mutex); + cnd_wait(&ring->change, &ring->mutex); /* Copy data to ring: */ @@ -123,7 +123,7 @@ enum pipe_error util_ringbuffer_dequeue( struct util_ringbuffer *ring, */ if (wait) { while (util_ringbuffer_empty(ring)) - pipe_condvar_wait(ring->change, ring->mutex); + cnd_wait(&ring->change, &ring->mutex); } else { if (util_ringbuffer_empty(ring)) { |