summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qmutex.h
diff options
context:
space:
mode:
authorJoão Abecasis <joao.abecasis@nokia.com>2011-02-16 18:01:17 (GMT)
committerJoão Abecasis <joao.abecasis@nokia.com>2011-02-16 18:01:17 (GMT)
commit9db05f0b7bf68392dc925d4047aa74dac88b348a (patch)
tree3690ea636187c9af9459ff3bfd4cab3e2af97c57 /src/corelib/thread/qmutex.h
parent0df215e5afc780c1fddd9e410f7ef0814ac1307c (diff)
parent5a1676af979ab75c8939e53e0223ccbea7708de4 (diff)
downloadQt-9db05f0b7bf68392dc925d4047aa74dac88b348a.zip
Qt-9db05f0b7bf68392dc925d4047aa74dac88b348a.tar.gz
Qt-9db05f0b7bf68392dc925d4047aa74dac88b348a.tar.bz2
Merge branch earth-team/master into earth-staging
Conflicts: doc/src/development/qmake-manual.qdoc
Diffstat (limited to 'src/corelib/thread/qmutex.h')
-rw-r--r--src/corelib/thread/qmutex.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/corelib/thread/qmutex.h b/src/corelib/thread/qmutex.h
index dfe4aae..5f75195 100644
--- a/src/corelib/thread/qmutex.h
+++ b/src/corelib/thread/qmutex.h
@@ -163,6 +163,7 @@ class QMutexData
~QMutexData();
};
+#ifdef QT_NO_DEBUG
inline void QMutex::unlockInline()
{
if (d->recursive) {
@@ -189,7 +190,13 @@ inline void QMutex::lockInline()
lockInternal();
}
}
-
+#else // QT_NO_DEBUG
+//in debug we do not use inline calls in order to allow debugging tools
+// to hook the mutex locking functions.
+inline void QMutex::unlockInline() { unlock(); }
+inline bool QMutex::tryLockInline() { return tryLock(); }
+inline void QMutex::lockInline() { lock(); }
+#endif // QT_NO_DEBUG
#else // QT_NO_THREAD