diff --git a/src/gallium/auxiliary/os/os_thread.h b/src/gallium/auxiliary/os/os_thread.h index d904764..a84ca64 100644 --- a/src/gallium/auxiliary/os/os_thread.h +++ b/src/gallium/auxiliary/os/os_thread.h @@ -46,6 +46,9 @@ #include #endif +#ifdef PIPE_OS_LINUX +#include +#endif /* pipe_thread */ @@ -85,6 +88,15 @@ static inline int pipe_thread_destroy( pipe_thread thread ) return thrd_detach( thread ); } +static inline void pipe_thread_setname( const char *name ) +{ +#ifdef PIPE_OS_LINUX + prctl(PR_SET_NAME, name, 0, 0, 0); +#else + (void)name; +#endif +} + /* pipe_mutex */