[Mesa-dev] [PATCH] mesa: set thread name for glthread
Timothy Arceri
tarceri at itsqueeze.com
Thu Mar 23 23:00:58 UTC 2017
On 24/03/17 09:47, Miklós Máté wrote:
> Thank you for the review. Could someone please commit this? I have no
> access.
>
> MM
Pushed. Thanks!
>
> On 20/03/17 17:36, Marek Olšák wrote:
>> Reviewed-by: Marek Olšák <marek.olsak at amd.com>
>>
>> Marek
>>
>> On Sat, Mar 18, 2017 at 10:55 PM, Miklós Máté <mtmkls at gmail.com> wrote:
>>> Signed-off-by: Miklós Máté <mtmkls at gmail.com>
>>> ---
>>> src/mesa/main/glthread.c | 3 +++
>>> 1 file changed, 3 insertions(+)
>>>
>>> diff --git a/src/mesa/main/glthread.c b/src/mesa/main/glthread.c
>>> index 623266f484..06115b916d 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) {
>>> --
>>> 2.11.0
>>>
>>> _______________________________________________
>>> mesa-dev mailing list
>>> mesa-dev at lists.freedesktop.org
>>> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list