|
Qt Utilities 6.18.2
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
|
Like QMutexLocker, but it just tries to lock the mutex. More...
#include <trylocker.h>
Public Member Functions | |
| TryLocker (Mutex &mutex) | |
| Tries to lock the specified mutex. | |
| ~TryLocker () | |
| Unlocks the mutex specified when constructing. | |
| bool | isLocked () const |
| Returns whether the mutex could be locked. | |
| operator bool () const | |
| Returns whether the mutex could be locked. | |
Like QMutexLocker, but it just tries to lock the mutex.
Definition at line 13 of file trylocker.h.
|
inline |
Tries to lock the specified mutex.
Definition at line 18 of file trylocker.h.
|
inline |
Unlocks the mutex specified when constructing.
Definition at line 27 of file trylocker.h.
|
inline |
Returns whether the mutex could be locked.
Definition at line 37 of file trylocker.h.
|
inline |
Returns whether the mutex could be locked.
Definition at line 45 of file trylocker.h.