summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qmutex.cpp
diff options
context:
space:
mode:
authorSergio Ahumada <sergio.ahumada@nokia.com>2012-07-11 14:44:38 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-11 14:52:37 +0200
commit59339941e0e6e2b8648c2e128284de188a65714b (patch)
treed2f19ebbac24dfc5872509cb74262375cd3e8962 /src/corelib/thread/qmutex.cpp
parent62e6608f6932c6d871d17b0ccce0c7b388866458 (diff)
Fix some spelling errors
Change-Id: I19d3b2e9a5180b13deb828b55195404ef20be295 Reviewed-by: Daniel Teske <daniel.teske@nokia.com> Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/corelib/thread/qmutex.cpp')
-rw-r--r--src/corelib/thread/qmutex.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/corelib/thread/qmutex.cpp b/src/corelib/thread/qmutex.cpp
index d310f56798..f54d896b74 100644
--- a/src/corelib/thread/qmutex.cpp
+++ b/src/corelib/thread/qmutex.cpp
@@ -369,9 +369,9 @@ bool QBasicMutex::lockInternal(int timeout)
old_waiters = d->waiters.load();
if (old_waiters == -QMutexPrivate::BigNumber) {
// we are unlocking, and the thread that unlocks is about to change d to 0
- // we try to aquire the mutex by changing to dummyLocked()
+ // we try to acquire the mutex by changing to dummyLocked()
if (d_ptr.testAndSetAcquire(d, dummyLocked())) {
- // Mutex aquired
+ // Mutex acquired
Q_ASSERT(d->waiters.load() == -QMutexPrivate::BigNumber || d->waiters.load() == 0);
d->waiters.store(0);
d->deref();
@@ -450,7 +450,7 @@ void QBasicMutex::unlockInternal()
d->deref();
}
-//The freelist managment
+//The freelist management
namespace {
struct FreeListConstants : QFreeListDefaultConstants {
enum { BlockCount = 4, MaxIndex=0xffff };
@@ -489,7 +489,7 @@ void QMutexPrivate::release()
freelist()->release(id);
}
-// atomically substract "value" to the waiters, and remove the QMutexPrivate::BigNumber flag
+// atomically subtract "value" to the waiters, and remove the QMutexPrivate::BigNumber flag
void QMutexPrivate::derefWaiters(int value)
{
int old_waiters;