d/wmr: Use U_TRACE_SET_THREAD_NAME

This commit is contained in:
Jakob Bornecrantz 2022-11-20 14:32:32 +00:00
parent 386aa510bd
commit 0691ed9b89
3 changed files with 4 additions and 3 deletions

View file

@ -377,7 +377,7 @@ wmr_bt_controller_update_inputs(struct xrt_device *xdev)
static void *
wmr_bt_controller_run_thread(void *ptr)
{
DRV_TRACE_MARKER();
U_TRACE_SET_THREAD_NAME("WMR: BT-Controller");
struct wmr_bt_controller *d = wmr_bt_controller(ptr);

View file

@ -207,7 +207,7 @@ compute_frame_size(struct wmr_camera *cam)
static void *
wmr_cam_usb_thread(void *ptr)
{
DRV_TRACE_MARKER();
U_TRACE_SET_THREAD_NAME("WMR: USB-Camera");
struct wmr_camera *cam = ptr;
@ -223,6 +223,7 @@ wmr_cam_usb_thread(void *ptr)
//! @todo Think this is not needed? what condition are we waiting for?
os_thread_helper_wait_locked(&cam->usb_thread);
os_thread_helper_unlock(&cam->usb_thread);
return NULL;
}

View file

@ -581,7 +581,7 @@ control_read_packets(struct wmr_hmd *wh)
static void *
wmr_run_thread(void *ptr)
{
DRV_TRACE_MARKER();
U_TRACE_SET_THREAD_NAME("WMR: USB-HMD");
struct wmr_hmd *wh = (struct wmr_hmd *)ptr;