implement mutex

This commit is contained in:
Rémi Heredero 2023-09-26 12:41:12 +02:00
parent bef0bade14
commit 56516fa7c8
2 changed files with 15 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
test-bench/test1/build-test1-idf-Desktop_Qt_6_3_0_MinGW_64_bit-Debug

View File

@ -16,3 +16,17 @@ interface::XFMutex * interface::XFMutex::create()
// TODO: Implement code for XFMutex class // TODO: Implement code for XFMutex class
#endif // USE_XF_IDF_QT_MUTEX_CLASS #endif // USE_XF_IDF_QT_MUTEX_CLASS
void XFMutex::lock() {
mutex_.lock();
}
void XFMutex::unlock() {
mutex_.unlock();
}
bool XFMutex::tryLock(int32_t timeout) {
mutex_.tryLock(timeout);
}