diff options
author | Miklós Máté <[email protected]> | 2017-03-18 22:55:43 +0100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-24 10:00:19 +1100 |
commit | 7ceb1a4fa826910508ef6cb1d1b27529cd999340 (patch) | |
tree | 48174c5750ac52d63079e422be3ef99a7b21dbf1 | |
parent | 7499bc7fd79bdcc3f0c46425dec18495dbcbdfe6 (diff) |
mesa: set thread name for glthread
Signed-off-by: Miklós Máté <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r-- | src/mesa/main/glthread.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |