mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-16 03:45:24 +00:00
c/main: Name some threads
This commit is contained in:
parent
e123a50438
commit
e33a9b3481
|
@ -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)) {
|
||||
|
|
|
@ -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.");
|
||||
|
|
Loading…
Reference in a new issue