The open source OpenXR runtime
0
fork

Configure Feed

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

d/hdk: initialized thread helper

Fixes assert in debug mode.

+8 -1
+8 -1
src/xrt/drivers/hdk/hdk_device.cpp
··· 476 476 // XRT_DISTORTION_MODEL_PANOTOOLS; 477 477 // } 478 478 479 + int ret = os_thread_helper_init(&hd->imu_thread); 480 + if (ret != 0) { 481 + HDK_ERROR(hd, "Failed to start imu thread!"); 482 + hdk_device_destroy((struct xrt_device *)hd); 483 + return 0; 484 + } 485 + 479 486 if (hd->dev) { 480 487 // Mutex before thread. 481 - int ret = os_mutex_init(&hd->lock); 488 + ret = os_mutex_init(&hd->lock); 482 489 if (ret != 0) { 483 490 HDK_ERROR(hd, "Failed to init mutex!"); 484 491 hdk_device_destroy(&hd->base);