mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
mesa: set thread name for glthread
Signed-off-by: Miklós Máté <mtmkls@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
7499bc7fd7
commit
7ceb1a4fa8
1 changed files with 3 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue