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:
committed by
Timothy Arceri
parent
7499bc7fd7
commit
7ceb1a4fa8
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user