Move QRecursiveMutexPrivate to qmutex.cpp and mark inline
authorThiago Macieira <thiago.macieira@intel.com>
Thu, 16 Aug 2012 14:12:07 +0000 (16:12 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 14 Sep 2012 01:45:50 +0000 (03:45 +0200)
commit6fd1895b918c45d8404ff38319f508f0357cba27
tree081a24c19215c0e394bbaab9c51fcc505ecd06b4
parentbd5b4de839938bd3be253b1708439fed6f275b7c
Move QRecursiveMutexPrivate to qmutex.cpp and mark inline

Disassembly of the optimised code shows that the compiler was already
inlining the bodies of one or both functions (since they're in the same
.cpp, it's allowed to do that).

However, since there was no "inline" marker, the compiler was also
emitting an out-of-line copy, which wasn't used by anyone, as the class
is not exported.

So add the marker. To make sure that they don't get used by accident
elsewhere, the class is moved to the .cpp file too.

Change-Id: Iead578ec9c7d8dd6b4e6bb582ce5b829cdec5992
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
src/corelib/thread/qmutex.cpp
src/corelib/thread/qmutex_p.h