This repository has been archived on 2024-01-25. You can view files and clone it, but cannot push or open issues or pull requests.

33 lines
508 B
C++
Raw Normal View History

2023-09-19 15:59:49 +02:00
#include <config/xf-config.h>
#if (USE_XF_IDF_QT_MUTEX_CLASS != 0)
#include <cassert>
#include "mutex.h"
/**
* @brief Implementation of interface::XFMutex::create method.
*/
interface::XFMutex * interface::XFMutex::create()
{
return new ::XFMutex;
}
// TODO: Implement code for XFMutex class
#endif // USE_XF_IDF_QT_MUTEX_CLASS
2023-09-26 12:41:12 +02:00
void XFMutex::lock() {
mutex_.lock();
}
void XFMutex::unlock() {
mutex_.unlock();
}
bool XFMutex::tryLock(int32_t timeout) {
mutex_.tryLock(timeout);
}