![]() |
Qt 6.x
The Qt SDK
|
#include <qmutex_p.h>
Public Types | |
enum | { BigNumber = 0x100000 } |
Public Member Functions | |
~QMutexPrivate () | |
QMutexPrivate () | |
bool | wait (QDeadlineTimer timeout=QDeadlineTimer::Forever) |
void | wakeUp () noexcept |
bool | ref () |
void | deref () |
void | release () |
void | derefWaiters (int value) noexcept |
Static Public Member Functions | |
static QMutexPrivate * | allocate () |
Public Attributes | |
QAtomicInt | refCount |
int | id |
QAtomicInt | waiters |
QAtomicInt | possiblyUnlocked |
Definition at line 40 of file qmutex_p.h.
anonymous enum |
Enumerator | |
---|---|
BigNumber |
Definition at line 81 of file qmutex_p.h.
QMutexPrivate::~QMutexPrivate | ( | ) |
Definition at line 24 of file qmutex_mac.cpp.
References qWarning.
QMutexPrivate::QMutexPrivate | ( | ) |
Definition at line 17 of file qmutex_mac.cpp.
References qWarning.
|
static |
Definition at line 874 of file qmutex.cpp.
|
inline |
Definition at line 65 of file qmutex_p.h.
References QBasicAtomicInteger< T >::deref(), QBasicAtomicInteger< T >::loadRelaxed(), Q_ASSERT, refCount, and release().
|
noexcept |
Definition at line 895 of file qmutex.cpp.
References BigNumber.
|
inline |
Definition at line 53 of file qmutex_p.h.
References QBasicAtomicInteger< T >::loadRelaxed(), Q_ASSERT, refCount, and QBasicAtomicInteger< T >::testAndSetRelaxed().
void QMutexPrivate::release | ( | ) |
Definition at line 886 of file qmutex.cpp.
References QBasicAtomicInteger< T >::loadRelaxed(), possiblyUnlocked, Q_ASSERT, refCount, and waiters.
Referenced by deref().
bool QMutexPrivate::wait | ( | QDeadlineTimer | timeout = QDeadlineTimer::Forever | ) |
Definition at line 31 of file qmutex_mac.cpp.
References durationToTimespec(), and Q_ASSERT.
|
noexcept |
Definition at line 49 of file qmutex_mac.cpp.
int QMutexPrivate::id |
Definition at line 51 of file qmutex_p.h.
QAtomicInt QMutexPrivate::possiblyUnlocked |
Definition at line 76 of file qmutex_p.h.
Referenced by release().
QAtomicInt QMutexPrivate::refCount |
Definition at line 50 of file qmutex_p.h.
QAtomicInt QMutexPrivate::waiters |
Definition at line 75 of file qmutex_p.h.
Referenced by release().