Mesa (staging/19.2): util: Solaris has linux-style pthread_setname_np

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Oct 17 16:29:37 UTC 2019


Module: Mesa
Branch: staging/19.2
Commit: 55a04df479daaf55d22181e43be8c81a6aa57235
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=55a04df479daaf55d22181e43be8c81a6aa57235

Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Mon Oct  7 18:10:43 2019 -0700

util: Solaris has linux-style pthread_setname_np

Fixes: dcf9d91a ("util: Handle differences in pthread_setname_np")

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Acked-by: Eric Engestrom <eric.engestrom at intel.com>
(cherry picked from commit 7040795a69a400b32ca17d78c8142976c66a1a97)

---

 src/util/u_thread.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/u_thread.h b/src/util/u_thread.h
index 26c76d78c05..6fc923c10e6 100644
--- a/src/util/u_thread.h
+++ b/src/util/u_thread.h
@@ -69,7 +69,7 @@ static inline thrd_t u_thread_create(int (*routine)(void *), void *param)
 static inline void u_thread_setname( const char *name )
 {
 #if defined(HAVE_PTHREAD)
-#if DETECT_OS_LINUX || DETECT_OS_CYGWIN
+#if DETECT_OS_LINUX || DETECT_OS_CYGWIN || DETECT_OS_SOLARIS
    pthread_setname_np(pthread_self(), name);
 #elif DETECT_OS_FREEBSD || DETECT_OS_OPENBSD
    pthread_set_name_np(pthread_self(), name);




More information about the mesa-commit mailing list