diff options
author | Timothy Arceri <[email protected]> | 2017-03-05 12:32:06 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-07 08:53:05 +1100 |
commit | 628e84a58fdb26c63a705861b92f65f242613321 (patch) | |
tree | bd6084a4dee53a1f180c62f41e790ab490ddf3ee /src/gallium/auxiliary/os/os_thread.h | |
parent | ba72554f3e576c1674d52ab16d8d2edff9398b71 (diff) |
gallium/util: replace pipe_mutex_unlock() with mtx_unlock()
pipe_mutex_unlock() was made unnecessary with fd33a6bcd7f12.
Replaced using:
find ./src -type f -exec sed -i -- \
's:pipe_mutex_unlock(\([^)]*\)):mtx_unlock(\&\1):g' {} \;
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/os/os_thread.h')
-rw-r--r-- | src/gallium/auxiliary/os/os_thread.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gallium/auxiliary/os/os_thread.h b/src/gallium/auxiliary/os/os_thread.h index 5b759659cae..a429f4eaf76 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_unlock(mutex) \ - (void) mtx_unlock(&(mutex)) - #define pipe_mutex_assert_locked(mutex) \ __pipe_mutex_assert_locked(&(mutex)) @@ -202,7 +199,7 @@ static inline void pipe_barrier_wait(pipe_barrier *barrier) cnd_broadcast(&barrier->condvar); } - pipe_mutex_unlock(barrier->mutex); + mtx_unlock(&barrier->mutex); } @@ -243,7 +240,7 @@ pipe_semaphore_signal(pipe_semaphore *sema) mtx_lock(&sema->mutex); sema->counter++; cnd_signal(&sema->cond); - pipe_mutex_unlock(sema->mutex); + mtx_unlock(&sema->mutex); } /** Wait for semaphore counter to be greater than zero */ @@ -255,7 +252,7 @@ pipe_semaphore_wait(pipe_semaphore *sema) cnd_wait(&sema->cond, &sema->mutex); } sema->counter--; - pipe_mutex_unlock(sema->mutex); + mtx_unlock(&sema->mutex); } |