From ca76a2ba1b83ca837a198dc58ef3962d1ca71c68 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Thu, 9 Mar 2017 10:07:43 +1100 Subject: gallium/util: replace pipe_thread_setname() with u_thread_setname() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They do the same thing we just moved the function to be accessible to all of Mesa. Reviewed-by: Marek Olšák --- src/gallium/auxiliary/os/os_thread.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/gallium/auxiliary') diff --git a/src/gallium/auxiliary/os/os_thread.h b/src/gallium/auxiliary/os/os_thread.h index ecd8f8a5e97..b6e0698da61 100644 --- a/src/gallium/auxiliary/os/os_thread.h +++ b/src/gallium/auxiliary/os/os_thread.h @@ -42,18 +42,6 @@ #include "util/u_thread.h" -static inline void pipe_thread_setname( const char *name ) -{ -#if defined(HAVE_PTHREAD) -# if defined(__GNU_LIBRARY__) && defined(__GLIBC__) && defined(__GLIBC_MINOR__) && \ - (__GLIBC__ >= 3 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 12)) - pthread_setname_np(pthread_self(), name); -# endif -#endif - (void)name; -} - - static inline int pipe_thread_is_self( thrd_t thread ) { #if defined(HAVE_PTHREAD) -- cgit v1.2.3