1#ifndef XF_MUTEX_DEFAULT_QT_H
2#define XF_MUTEX_DEFAULT_QT_H
4#include <config/xf-config.h>
6#if (USE_XF_IDF_QT_MUTEX_CLASS != 0)
10#include "xf/interface/mutex.h"
27 bool tryLock(int32_t timeout = 0)
override;
Default Qt implementation for the XFMutex interface.
Definition: mutex.h:20
void lock() override
Blocks until the mutex becomes available.
XFMutex()=default
Do not allow to directly create an object of this class. Call interface::XFMutex::create() instead.
QMutex mutex_
The real mutex.
Definition: mutex.h:33
bool tryLock(int32_t timeout=0) override
Tries to get the mutex.
void unlock() override
Releases the mutex so it can be taken by other threads.
Mutex interface needed by the XF to access a mutex.
Definition: mutex.h:18