| 1 | // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/miscellaneous/mutex.h`/ |
| 2 | |
| 3 | #ifndef MUTEX_H |
| 4 | #define MUTEX_Hcxx . . $ `src/librssguard/miscellaneous/mutex.h:4:9`! |
| 5 | |
| 6 | #include <QMutex> |
| 7 | #include <QObject> |
| 8 | |
| 9 | class RSSGUARD_DLLSPECcxx . . $ `<built-in>:525:9`! Mutexcxx . . $ Mutex# : public QObjectcxx . . $ QObject# { |
| 10 | Q_OBJECTcxx . . $ QMetaObject#Call# |
| 11 | |
| 12 | public: |
| 13 | explicit Mutexcxx . . $ Mutex#Mutex(749de1b6ae65bddd).(QObjectcxx . . $ QObject#* parent = nullptr); |
| 14 | virtual ~cxx . . $ Mutex#`~Mutex`(ced63f7c635d850d).Mutexcxx . . $ Mutex#(); |
| 15 | |
| 16 | // Main methods. |
| 17 | bool tryLockcxx . . $ Mutex#tryLock(c9857a73d68e59ba).(); |
| 18 | bool tryLockcxx . . $ Mutex#tryLock(83c267b20bac841a).(int timeout); |
| 19 | |
| 20 | // Identifies if mutes is locked or not. |
| 21 | bool isLockedcxx . . $ Mutex#isLocked(50ce9a9e25b4a850).() const; |
| 22 | |
| 23 | operatorcxx . . $ Mutex#`operator QMutex *`(bd9306907d4e3bb). QMutexcxx . . $ QMutex#*() const; |
| 24 | |
| 25 | public slotscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:42:14`!: |
| 26 | void lockcxx . . $ Mutex#lock(49f6e7a06ebc5aa8).(); |
| 27 | void unlockcxx . . $ Mutex#unlock(49f6e7a06ebc5aa8).(); |
| 28 | |
| 29 | protected: |
| 30 | // These methods set proper value for m_isLocked and emit signals. |
| 31 | void setLockedcxx . . $ Mutex#setLocked(49f6e7a06ebc5aa8).(); |
| 32 | void setUnlockedcxx . . $ Mutex#setUnlocked(49f6e7a06ebc5aa8).(); |
| 33 | |
| 34 | signalscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:43:14`!: |
| 35 | void lockedcxx . . $ Mutex#locked(49f6e7a06ebc5aa8).(); |
| 36 | void unlockedcxx . . $ Mutex#unlocked(49f6e7a06ebc5aa8).(); |
| 37 | |
| 38 | private: |
| 39 | QScopedPointercxx . . $ QScopedPointer#<QMutexcxx . . $ QMutex#> m_mutexcxx . . $ Mutex#m_mutex.; |
| 40 | bool m_isLockedcxx . . $ Mutex#m_isLocked.; |
| 41 | }; |
| 42 | |
| 43 | #endif // MUTEX_H |