From: Miklós Máté Date: Sat, 18 Mar 2017 21:55:43 +0000 (+0100) Subject: mesa: set thread name for glthread X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ceb1a4fa826910508ef6cb1d1b27529cd999340;p=mesa.git mesa: set thread name for glthread Signed-off-by: Miklós Máté Reviewed-by: Marek Olšák --- 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) {