From 78f8c6c81c2e900aa1cb433940667a054cc0b6ed Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 25 Apr 2025 08:01:32 +0200 Subject: buffer flush --- tracker-steamvr/steamvr.cpp | 2 +- tracker-steamvr/steamvr.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tracker-steamvr') diff --git a/tracker-steamvr/steamvr.cpp b/tracker-steamvr/steamvr.cpp index 05b5ed35e..bd0c9c1e0 100644 --- a/tracker-steamvr/steamvr.cpp +++ b/tracker-steamvr/steamvr.cpp @@ -26,7 +26,7 @@ #include #include -QMutex device_list::mtx(QMutex::Recursive); +QRecursiveMutex device_list::mtx; template auto with_vr_lock(F&& fun) -> decltype(fun(vr_t(), vr_error_t())) diff --git a/tracker-steamvr/steamvr.hpp b/tracker-steamvr/steamvr.hpp index 61da2e054..cc70ffc53 100644 --- a/tracker-steamvr/steamvr.hpp +++ b/tracker-steamvr/steamvr.hpp @@ -8,7 +8,7 @@ #include #include -#include +#include #include #include @@ -57,7 +57,7 @@ struct device_list final private: QList device_specs; - static QMutex mtx; + static QRecursiveMutex mtx; static tt vr_init_(); static void fill_device_specs(QList& list); static tt vr_init(); -- cgit v1.2.3