mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 02:26:16 +00:00
d/vive: Use U_TRACE_SET_THREAD_NAME
This commit is contained in:
parent
5142fa7e88
commit
36d1734377
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue