diff options
author | Marek Olšák <[email protected]> | 2017-06-21 14:11:13 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-06-26 02:17:03 +0200 |
commit | 6884c95ab4e06a418add29052b0a633a7fdad6ae (patch) | |
tree | 71fdbef9681ffa65625d439a2fe8365a99bb6baf /src/gallium/auxiliary/os/os_thread.h | |
parent | 78bef01da2b41fec6fb82d8e6ccacf594d0a6b93 (diff) |
util: move pipe_thread_is_self from gallium to src/util
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/os/os_thread.h')
-rw-r--r-- | src/gallium/auxiliary/os/os_thread.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/gallium/auxiliary/os/os_thread.h b/src/gallium/auxiliary/os/os_thread.h index 0a238e57493..10d4695da68 100644 --- a/src/gallium/auxiliary/os/os_thread.h +++ b/src/gallium/auxiliary/os/os_thread.h @@ -42,17 +42,6 @@ #include "util/u_thread.h" -static inline int pipe_thread_is_self( thrd_t thread ) -{ -#if defined(HAVE_PTHREAD) -# if defined(__GNU_LIBRARY__) && defined(__GLIBC__) && defined(__GLIBC_MINOR__) && \ - (__GLIBC__ >= 3 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 12)) - return pthread_equal(pthread_self(), thread); -# endif -#endif - return 0; -} - #define pipe_mutex_assert_locked(mutex) \ __pipe_mutex_assert_locked(&(mutex)) |