51 :
QMutexData(mode), maximumSpinTime(MaximumSpinTimeThreshold), averageWaitTime(0),
owner(0), count(0)
55 qWarning(
"QMutexPrivate::QMutexPrivate: Cannot create event");
59 { CloseHandle(
event); }
67 bool returnValue = (WaitForSingleObject(
event, timeout < 0 ? INFINITE : timeout) ==
WAIT_OBJECT_0);
#define QT_END_NAMESPACE
This macro expands to.
bool wait(int timeout=-1)
#define QT_BEGIN_NAMESPACE
This macro expands to.
bool deref()
Atomically decrements the value of this QAtomicInt.
Q_CORE_EXPORT void qWarning(const char *,...)
#define FALSE
Synonym for false.
int fetchAndAddAcquire(int valueToAdd)
Atomic fetch-and-add.
QMutexPrivate(QMutex::RecursionMode mode)