implement mutex
This commit is contained in:
parent
bef0bade14
commit
56516fa7c8
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
test-bench/test1/build-test1-idf-Desktop_Qt_6_3_0_MinGW_64_bit-Debug
|
@ -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);
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user