c/main: Name some threads

This commit is contained in:
Ryan Pavlik 2022-05-17 10:09:43 -05:00
parent e123a50438
commit e33a9b3481
2 changed files with 5 additions and 6 deletions

View file

@ -529,6 +529,8 @@ run_vblank_event_thread(void *ptr)
COMP_DEBUG(ct->c, "Surface thread starting");
os_thread_helper_name(&cts->vblank.event_thread, "VBlank Event Thread");
os_thread_helper_lock(&cts->vblank.event_thread);
while (os_thread_helper_is_running_locked(&cts->vblank.event_thread)) {

View file

@ -1,4 +1,4 @@
// Copyright 2019-2021, Collabora, Ltd.
// Copyright 2019-2022, Collabora, Ltd.
// SPDX-License-Identifier: BSL-1.0
/*!
* @file
@ -16,8 +16,6 @@
#include "util/u_misc.h"
#include "os/os_threading.h"
#include <processthreadsapi.h>
#undef ALLOW_CLOSING_WINDOW
@ -163,9 +161,6 @@ comp_window_mswin_flush(struct comp_target *ct)
static void
comp_window_mswin_thread(struct comp_window_mswin *cwm)
{
// OK if this fails
(void)SetThreadDescription(GetCurrentThread(), L"Message Handler");
struct comp_target *ct = &cwm->base.base;
RECT rc = {0, 0, (LONG)(ct->width), (LONG)ct->height};
@ -246,6 +241,8 @@ comp_window_mswin_thread_func(void *ptr)
{
struct comp_window_mswin *cwm = (struct comp_window_mswin *)ptr;
os_thread_helper_name(&(cwm->oth), "Compositor Window Message Thread");
comp_window_mswin_thread(cwm);
os_thread_helper_signal_stop(&cwm->oth);
COMP_WARN(cwm->base.base.c, "Windows window message thread now exiting.");