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