The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

c/main: Name some threads

+5 -6
+2
src/xrt/compositor/main/comp_target_swapchain.c
··· 529 529 530 530 COMP_DEBUG(ct->c, "Surface thread starting"); 531 531 532 + os_thread_helper_name(&cts->vblank.event_thread, "VBlank Event Thread"); 533 + 532 534 os_thread_helper_lock(&cts->vblank.event_thread); 533 535 534 536 while (os_thread_helper_is_running_locked(&cts->vblank.event_thread)) {
+3 -6
src/xrt/compositor/main/comp_window_mswin.c
··· 1 - // Copyright 2019-2021, Collabora, Ltd. 1 + // Copyright 2019-2022, Collabora, Ltd. 2 2 // SPDX-License-Identifier: BSL-1.0 3 3 /*! 4 4 * @file ··· 15 15 #include "main/comp_window.h" 16 16 #include "util/u_misc.h" 17 17 #include "os/os_threading.h" 18 - 19 - #include <processthreadsapi.h> 20 18 21 19 22 20 #undef ALLOW_CLOSING_WINDOW ··· 163 161 static void 164 162 comp_window_mswin_thread(struct comp_window_mswin *cwm) 165 163 { 166 - // OK if this fails 167 - (void)SetThreadDescription(GetCurrentThread(), L"Message Handler"); 168 - 169 164 struct comp_target *ct = &cwm->base.base; 170 165 171 166 RECT rc = {0, 0, (LONG)(ct->width), (LONG)ct->height}; ··· 246 241 { 247 242 248 243 struct comp_window_mswin *cwm = (struct comp_window_mswin *)ptr; 244 + os_thread_helper_name(&(cwm->oth), "Compositor Window Message Thread"); 245 + 249 246 comp_window_mswin_thread(cwm); 250 247 os_thread_helper_signal_stop(&cwm->oth); 251 248 COMP_WARN(cwm->base.base.c, "Windows window message thread now exiting.");