summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-08-11 15:23:56 +0200
committerQt by Nokia <qt-info@nokia.com>2012-09-14 03:45:50 +0200
commit70ff7d097bdf214c53b0ca94a8ae51017da32fe6 (patch)
tree9c8d8d831096df4f977fe66b6847f4fa32940666 /src/corelib/thread
parentf587e8f4fd670f11fa1e878c1015d7241033559a (diff)
Use storeRelease to unlock a mutex instead of fetchAndStoreRelease
We're not checking the result anyway, so use a simpler operation. Change-Id: I8c2db35be86660b29d81dd97ce3e269de55a37df Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/thread')
-rw-r--r--src/corelib/thread/qmutex_linux.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/thread/qmutex_linux.cpp b/src/corelib/thread/qmutex_linux.cpp
index e2842a670b..a93295881e 100644
--- a/src/corelib/thread/qmutex_linux.cpp
+++ b/src/corelib/thread/qmutex_linux.cpp
@@ -244,7 +244,7 @@ void QBasicMutex::unlockInternal() Q_DECL_NOTHROW
Q_UNUSED(d);
Q_ASSERT(!isRecursive());
- d_ptr.fetchAndStoreRelease(0);
+ d_ptr.storeRelease(0);
_q_futex(&d_ptr, FUTEX_WAKE, 1, 0);
}