Simplified XF 1.1.0
|
Default Qt implementation for the XFMutex interface. More...
#include <mutex.h>
Public Member Functions | |
void | lock () override |
Blocks until the mutex becomes available. More... | |
void | unlock () override |
Releases the mutex so it can be taken by other threads. More... | |
bool | tryLock (int32_t timeout=0) override |
Tries to get the mutex. More... | |
void | lock () override |
Blocks until the mutex becomes available. More... | |
void | unlock () override |
Releases the mutex so it can be taken by other threads. More... | |
bool | tryLock (int32_t timeout=0) override |
Tries to get the mutex. More... | |
Protected Member Functions | |
XFMutex ()=default | |
Do not allow to directly create an object of this class. Call interface::XFMutex::create() instead. | |
XFMutex ()=default | |
Do not allow to directly create an object of this class. Call interface::XFMutex::create() instead. | |
Protected Attributes | |
QMutex | mutex_ |
The real mutex. | |
Friends | |
class | interface::XFMutex |
class | XFEventQueue |
Additional Inherited Members | |
![]() | |
static XFMutex * | create () |
Creates and returns a new mutex instance. More... | |
Default Qt implementation for the XFMutex interface.
Default IDF implementation XFMutex interface.
This class uses enterCritical()
and exitCritical()
functions which must be provided by the platform. Therefore, this mutex implementation can be used in Embedded Systems without OS.
|
overridevirtual |
Blocks until the mutex becomes available.
Implements interface::XFMutex.
|
overridevirtual |
Blocks until the mutex becomes available.
Implements interface::XFMutex.
|
overridevirtual |
Tries to get the mutex.
If timeout is 0 method will leave immediately and then the return parameter indicates it the mutex could be taken or not. Giving a negative value will block the thread until the mutex becomes available.
Implements interface::XFMutex.
|
overridevirtual |
Tries to get the mutex.
If timeout is 0 method will leave immediately and then the return parameter indicates it the mutex could be taken or not. Giving a negative value will block the thread until the mutex becomes available.
Implements interface::XFMutex.
|
overridevirtual |
Releases the mutex so it can be taken by other threads.
Implements interface::XFMutex.
|
overridevirtual |
Releases the mutex so it can be taken by other threads.
Implements interface::XFMutex.