fix mutex
This commit is contained in:
parent
56516fa7c8
commit
b7403dc872
@ -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
|
||||
|
Reference in New Issue
Block a user