From b7403dc8721579824635ed00376c8045c7046596 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Heredero?= Date: Tue, 26 Sep 2023 14:25:48 +0200 Subject: [PATCH] fix mutex --- src/simplified/xf/port/idf-qt/mutex.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/simplified/xf/port/idf-qt/mutex.cpp b/src/simplified/xf/port/idf-qt/mutex.cpp index 602da6e..1fec6df 100644 --- a/src/simplified/xf/port/idf-qt/mutex.cpp +++ b/src/simplified/xf/port/idf-qt/mutex.cpp @@ -13,12 +13,6 @@ interface::XFMutex * interface::XFMutex::create() return new ::XFMutex; } -// TODO: Implement code for XFMutex class - -#endif // USE_XF_IDF_QT_MUTEX_CLASS - - - void XFMutex::lock() { mutex_.lock(); } @@ -28,5 +22,7 @@ void XFMutex::unlock() { } bool XFMutex::tryLock(int32_t timeout) { - mutex_.tryLock(timeout); + return mutex_.tryLock(timeout); } + +#endif // USE_XF_IDF_QT_MUTEX_CLASS