From 36d173437772b6c3adc6a00a8470fca25a446b05 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Sun, 20 Nov 2022 12:23:43 +0000 Subject: [PATCH] d/vive: Use U_TRACE_SET_THREAD_NAME --- src/xrt/drivers/vive/vive_device.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/xrt/drivers/vive/vive_device.c b/src/xrt/drivers/vive/vive_device.c index 27a53a848..12504532e 100644 --- a/src/xrt/drivers/vive/vive_device.c +++ b/src/xrt/drivers/vive/vive_device.c @@ -466,6 +466,8 @@ vive_mainboard_run_thread(void *ptr) { struct vive_device *d = (struct vive_device *)ptr; + U_TRACE_SET_THREAD_NAME("Vive: Mainboard"); + os_thread_helper_lock(&d->mainboard_thread); while (os_thread_helper_is_running_locked(&d->mainboard_thread)) { os_thread_helper_unlock(&d->mainboard_thread); @@ -735,6 +737,8 @@ vive_watchman_run_thread(void *ptr) { struct vive_device *d = (struct vive_device *)ptr; + U_TRACE_SET_THREAD_NAME("Vive: Watchman"); + os_thread_helper_lock(&d->watchman_thread); while (os_thread_helper_is_running_locked(&d->watchman_thread)) { os_thread_helper_unlock(&d->watchman_thread); @@ -755,6 +759,8 @@ vive_sensors_run_thread(void *ptr) { struct vive_device *d = (struct vive_device *)ptr; + U_TRACE_SET_THREAD_NAME("Vive: Sensors"); + os_thread_helper_lock(&d->sensors_thread); while (os_thread_helper_is_running_locked(&d->sensors_thread)) { os_thread_helper_unlock(&d->sensors_thread);