From da40ac65c7b9f8d877fb6f79b2a29138237ec868 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Mon, 6 Mar 2017 11:58:26 +1100 Subject: gallium/util: remove PIPE_THREAD_ROUTINE() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Marek Olšák --- src/gallium/auxiliary/os/os_thread.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/gallium/auxiliary/os/os_thread.h') 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 -- cgit v1.2.3