summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/thread')
-rw-r--r--src/corelib/thread/qbasicatomic.h2
-rw-r--r--src/corelib/thread/qmutex.cpp7
2 files changed, 7 insertions, 2 deletions
diff --git a/src/corelib/thread/qbasicatomic.h b/src/corelib/thread/qbasicatomic.h
index a747134df3..c29b80d3d0 100644
--- a/src/corelib/thread/qbasicatomic.h
+++ b/src/corelib/thread/qbasicatomic.h
@@ -62,8 +62,6 @@
# include "QtCore/qatomic_armv5.h"
#elif defined(Q_PROCESSOR_IA64)
# include "QtCore/qatomic_ia64.h"
-#elif defined(Q_PROCESSOR_MIPS)
-# include "QtCore/qatomic_mips.h"
#elif defined(Q_PROCESSOR_X86)
# include <QtCore/qatomic_x86.h>
diff --git a/src/corelib/thread/qmutex.cpp b/src/corelib/thread/qmutex.cpp
index 742a572bef..fa3bb080ae 100644
--- a/src/corelib/thread/qmutex.cpp
+++ b/src/corelib/thread/qmutex.cpp
@@ -139,6 +139,11 @@ public:
lock calls unlock(). A non-blocking alternative to lock() is
tryLock().
+ QMutex is optimized to be fast in the non-contended case. A non-recursive
+ QMutex will not allocate memory if there is no contention on that mutex.
+ It is constructed and destroyed with almost no overhead,
+ which means it is fine to have many mutexes as part of other classes.
+
\sa QMutexLocker, QReadWriteLock, QSemaphore, QWaitCondition
*/
@@ -165,6 +170,8 @@ public:
a thread may only lock a mutex once. The default is
QMutex::NonRecursive.
+ Recursive mutexes are slower and take more memory than non-recursive ones.
+
\sa lock(), unlock()
*/
QMutex::QMutex(RecursionMode mode)