diff options
author | Timothy Arceri <[email protected]> | 2017-03-06 11:58:26 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-07 09:12:16 +1100 |
commit | da40ac65c7b9f8d877fb6f79b2a29138237ec868 (patch) | |
tree | 00a0b3af4f968db85cd2a0b6bc531245f7c6a779 /src/gallium/auxiliary/os/os_thread.h | |
parent | e92293a601bbc141bb85f88f962264fa0b1da916 (diff) |
gallium/util: remove PIPE_THREAD_ROUTINE()
This was made unnecessary with fd33a6bcd7f12.
This was mostly done with:
find ./src -type f -exec sed -i -- \
's:PIPE_THREAD_ROUTINE(\([^,]*\), \([^)]*\)):int\n\1(void \*\2):g' {} \;
With some small manual tidy ups.
Reviewed-by: Plamena Manolova <[email protected]>
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 | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/os/os_thread.h b/src/gallium/auxiliary/os/os_thread.h index b15dd053c3d..bb767fa12d2 100644 --- a/src/gallium/auxiliary/os/os_thread.h +++ b/src/gallium/auxiliary/os/os_thread.h @@ -47,10 +47,7 @@ #endif -#define PIPE_THREAD_ROUTINE( name, param ) \ - int name( void *param ) - -static inline thrd_t pipe_thread_create( PIPE_THREAD_ROUTINE((*routine), ), void *param ) +static inline thrd_t pipe_thread_create(int (*routine)(void *), void *param) { thrd_t thread; #ifdef HAVE_PTHREAD |