fix mutex

This commit is contained in:
Rémi Heredero 2023-09-26 14:25:48 +02:00
parent 56516fa7c8
commit b7403dc872

View File

@ -13,12 +13,6 @@ interface::XFMutex * interface::XFMutex::create()
return new ::XFMutex; return new ::XFMutex;
} }
// TODO: Implement code for XFMutex class
#endif // USE_XF_IDF_QT_MUTEX_CLASS
void XFMutex::lock() { void XFMutex::lock() {
mutex_.lock(); mutex_.lock();
} }
@ -28,5 +22,7 @@ void XFMutex::unlock() {
} }
bool XFMutex::tryLock(int32_t timeout) { bool XFMutex::tryLock(int32_t timeout) {
mutex_.tryLock(timeout); return mutex_.tryLock(timeout);
} }
#endif // USE_XF_IDF_QT_MUTEX_CLASS