diff options
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/os/os_thread.h | 7 | ||||
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_queue.c | 6 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_ringbuffer.c | 2 |
4 files changed, 7 insertions, 10 deletions
diff --git a/src/gallium/auxiliary/os/os_thread.h b/src/gallium/auxiliary/os/os_thread.h index 0caf955b89f..e1dc210a6e3 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_init(cond) \ - cnd_init(&(cond)) - #define pipe_condvar_destroy(cond) \ cnd_destroy(&(cond)) @@ -204,7 +201,7 @@ static inline void pipe_barrier_init(pipe_barrier *barrier, unsigned count) barrier->waiters = 0; barrier->sequence = 0; pipe_mutex_init(barrier->mutex); - pipe_condvar_init(barrier->condvar); + cnd_init(&barrier->condvar); } static inline void pipe_barrier_destroy(pipe_barrier *barrier) @@ -256,7 +253,7 @@ static inline void pipe_semaphore_init(pipe_semaphore *sema, int init_val) { pipe_mutex_init(sema->mutex); - pipe_condvar_init(sema->cond); + cnd_init(&sema->cond); sema->counter = init_val; } diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c index fdbcf9e5c44..541a6d9079a 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c +++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c @@ -350,7 +350,7 @@ pb_slab_create(struct pb_slab_manager *mgr) buf->slab = slab; buf->start = i* mgr->bufSize; buf->mapCount = 0; - pipe_condvar_init(buf->event); + cnd_init(&buf->event); LIST_ADDTAIL(&buf->head, &slab->freeBuffers); slab->numFree++; buf++; diff --git a/src/gallium/auxiliary/util/u_queue.c b/src/gallium/auxiliary/util/u_queue.c index 8dd4cb3ccbb..dff5b154cac 100644 --- a/src/gallium/auxiliary/util/u_queue.c +++ b/src/gallium/auxiliary/util/u_queue.c @@ -114,7 +114,7 @@ util_queue_fence_init(struct util_queue_fence *fence) { memset(fence, 0, sizeof(*fence)); pipe_mutex_init(fence->mutex); - pipe_condvar_init(fence->cond); + cnd_init(&fence->cond); fence->signalled = true; } @@ -213,8 +213,8 @@ util_queue_init(struct util_queue *queue, pipe_mutex_init(queue->lock); queue->num_queued = 0; - pipe_condvar_init(queue->has_queued_cond); - pipe_condvar_init(queue->has_space_cond); + cnd_init(&queue->has_queued_cond); + cnd_init(&queue->has_space_cond); queue->threads = (pipe_thread*)CALLOC(num_threads, sizeof(pipe_thread)); if (!queue->threads) diff --git a/src/gallium/auxiliary/util/u_ringbuffer.c b/src/gallium/auxiliary/util/u_ringbuffer.c index 19830a904e6..e3be3ef1fba 100644 --- a/src/gallium/auxiliary/util/u_ringbuffer.c +++ b/src/gallium/auxiliary/util/u_ringbuffer.c @@ -35,7 +35,7 @@ struct util_ringbuffer *util_ringbuffer_create( unsigned dwords ) ring->mask = dwords - 1; - pipe_condvar_init(ring->change); + cnd_init(&ring->change); pipe_mutex_init(ring->mutex); return ring; |