diff options
author | Timothy Arceri <[email protected]> | 2017-03-05 12:32:04 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-07 08:52:16 +1100 |
commit | be188289e1bf0e259c91a751c405d54bb99bc5d4 (patch) | |
tree | 3c160d99455b38128cc79e113f5a9280e762878d /src/gallium/auxiliary/os | |
parent | 75b47dda0c8895afe77858cbb67efa38e17e1838 (diff) |
gallium/util: replace pipe_mutex_destroy() with mtx_destroy()
pipe_mutex_destroy() was made unnecessary with fd33a6bcd7f12.
Replace was done with:
find ./src -type f -exec sed -i -- \
's:pipe_mutex_destroy(\([^)]*\)):mtx_destroy(\&\1):g' {} \;
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/os')
-rw-r--r-- | src/gallium/auxiliary/os/os_thread.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gallium/auxiliary/os/os_thread.h b/src/gallium/auxiliary/os/os_thread.h index cccb5315579..571e3c68dae 100644 --- a/src/gallium/auxiliary/os/os_thread.h +++ b/src/gallium/auxiliary/os/os_thread.h @@ -108,9 +108,6 @@ static inline int pipe_thread_is_self( pipe_thread thread ) return 0; } -#define pipe_mutex_destroy(mutex) \ - mtx_destroy(&(mutex)) - #define pipe_mutex_lock(mutex) \ (void) mtx_lock(&(mutex)) @@ -185,7 +182,7 @@ static inline void pipe_barrier_init(pipe_barrier *barrier, unsigned count) static inline void pipe_barrier_destroy(pipe_barrier *barrier) { assert(barrier->waiters == 0); - pipe_mutex_destroy(barrier->mutex); + mtx_destroy(&barrier->mutex); cnd_destroy(&barrier->condvar); } @@ -238,7 +235,7 @@ pipe_semaphore_init(pipe_semaphore *sema, int init_val) static inline void pipe_semaphore_destroy(pipe_semaphore *sema) { - pipe_mutex_destroy(sema->mutex); + mtx_destroy(&sema->mutex); cnd_destroy(&sema->cond); } |