Make QBasicMutex be exclusively non-recursive
authorThiago Macieira <thiago.macieira@intel.com>
Sat, 11 Aug 2012 14:45:14 +0000 (16:45 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 14 Sep 2012 01:45:50 +0000 (03:45 +0200)
commit30bea611df2d95b53b63273ac867d9bd0a181edf
tree1d34c3cdf9294d649e02d45a13f46e731b5f9963
parent870bd84a4ee53ea98fd232da18771b1525dac1a1
Make QBasicMutex be exclusively non-recursive

Dispatch to the recursive mutex functions from QMutex::lock, tryLock
and unlock.

This has the benefit that those using QBasicMutex will not go through
the testing for recursive mutexes. It simplifies a little the code for
those users.

For the users of QMutex, the code required to perform a lock does not
appear to change.

Change-Id: I0ca9965e012b283c30f1fab8e9f6d9b3288c2247
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/corelib/thread/qmutex.cpp
src/corelib/thread/qmutex.h
src/corelib/thread/qmutex_linux.cpp
src/corelib/thread/qmutex_p.h