From 7ceb1a4fa826910508ef6cb1d1b27529cd999340 Mon Sep 17 00:00:00 2001 From: Miklós Máté Date: Sat, 18 Mar 2017 22:55:43 +0100 Subject: mesa: set thread name for glthread MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miklós Máté Reviewed-by: Marek Olšák --- src/mesa/main/glthread.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mesa/main') diff --git a/src/mesa/main/glthread.c b/src/mesa/main/glthread.c index 623266f484b..06115b916db 100644 --- a/src/mesa/main/glthread.c +++ b/src/mesa/main/glthread.c @@ -36,6 +36,7 @@ #include "main/glthread.h" #include "main/marshal.h" #include "main/marshal_generated.h" +#include "util/u_thread.h" #ifdef HAVE_PTHREAD @@ -75,6 +76,8 @@ glthread_worker(void *data) ctx->Driver.SetBackgroundContext(ctx); _glapi_set_context(ctx); + u_thread_setname("mesa_glthread"); + pthread_mutex_lock(&glthread->mutex); while (true) { -- cgit v1.2.3