[Mesa-dev] [PATCH 3/4] gallium/util: remove unused pipe_thread_destroy()

Timothy Arceri tarceri at itsqueeze.com
Mon Mar 6 00:58:28 UTC 2017


---
 src/gallium/auxiliary/os/os_thread.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/gallium/auxiliary/os/os_thread.h b/src/gallium/auxiliary/os/os_thread.h
index 2aad3e2..2292123 100644
--- a/src/gallium/auxiliary/os/os_thread.h
+++ b/src/gallium/auxiliary/os/os_thread.h
@@ -61,25 +61,20 @@ static inline thrd_t pipe_thread_create(int (*routine)(void *), void *param)
 #else
    int ret;
    ret = thrd_create( &thread, routine, param );
 #endif
    if (ret)
       return 0;
 
    return thread;
 }
 
-static inline int pipe_thread_destroy( thrd_t thread )
-{
-   return thrd_detach( thread );
-}
-
 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;
 }
-- 
2.9.3



More information about the mesa-dev mailing list