d/daydream: Initialize mutex and thread
Without this, when a Daydream controller was paired, the monado service would crash at startup with the following message: Assertion failed: oth->initialized (src/xrt/auxiliary/os/os_threading.h: os_thread_helper_start: 509) Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2663>
387 unmodified linesExpand all38838939039139239339439539639739817 unmodified lines387 unmodified linesExpand all m_imu_3dof_init(&dd->fusion, M_IMU_3DOF_USE_GRAVITY_DUR_300MS);
daydream_get_calibration(dd);
os_mutex_init(&dd->lock); os_thread_helper_init(&dd->oth);
// Everything done, finally start the thread. int ret = os_thread_helper_start(&dd->oth, daydream_run_thread, dd); if (ret != 0) { DAYDREAM_ERROR(dd, "Failed to start thread!");17 unmodified lines