From 8cb26df99de1ae9d5535c01981aedb14a5aa6403 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Tue, 17 May 2022 10:09:51 -0500 Subject: [PATCH] c/multi: Name some threads --- src/xrt/compositor/multi/comp_multi_compositor.c | 2 ++ src/xrt/compositor/multi/comp_multi_system.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/xrt/compositor/multi/comp_multi_compositor.c b/src/xrt/compositor/multi/comp_multi_compositor.c index 6f03ff49f..cd84a5615 100644 --- a/src/xrt/compositor/multi/comp_multi_compositor.c +++ b/src/xrt/compositor/multi/comp_multi_compositor.c @@ -219,6 +219,8 @@ run_func(void *ptr) { struct multi_compositor *mc = (struct multi_compositor *)ptr; + os_thread_helper_name(&(mc->wait_thread.oth), "Multi-Compositor Client Wait Thread"); + os_thread_helper_lock(&mc->wait_thread.oth); while (os_thread_helper_is_running_locked(&mc->wait_thread.oth)) { diff --git a/src/xrt/compositor/multi/comp_multi_system.c b/src/xrt/compositor/multi/comp_multi_system.c index c81fce5a8..e5605c048 100644 --- a/src/xrt/compositor/multi/comp_multi_system.c +++ b/src/xrt/compositor/multi/comp_multi_system.c @@ -356,7 +356,9 @@ static int multi_main_loop(struct multi_system_compositor *msc) { COMP_TRACE_MARKER(); - os_thread_helper_name(&(msc->oth), "Multi-System Compositor", L"Multi-System Compositor"); + + os_thread_helper_name(&(msc->oth), "Multi-Compositor"); + struct xrt_compositor *xc = &msc->xcn->base; //! @todo Don't make this a hack.