diff options
author | Olivier Goffart <ogoffart@kde.org> | 2011-10-20 17:11:18 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-31 12:16:11 +0100 |
commit | 73b682d816ec12afbf8064a44e462dd89e4c38df (patch) | |
tree | 667bc44e7fce3b618b2ceb3e70b7d087f7bff77b /src/corelib/thread/qmutex_mac.cpp | |
parent | 72257f642944a347b806ac34934d0fb8bc472b1c (diff) |
QRecursiveMutexPrivate should not inherit from QMutexPrivate
QMutexPrivate takes more memory than necessary, and also initialize
platform specific ressources.
Change-Id: I70be1b89b1c21499645785ae47693a6b2514e28b
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Diffstat (limited to 'src/corelib/thread/qmutex_mac.cpp')
-rw-r--r-- | src/corelib/thread/qmutex_mac.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/corelib/thread/qmutex_mac.cpp b/src/corelib/thread/qmutex_mac.cpp index f63feebca4..2fdb2ec489 100644 --- a/src/corelib/thread/qmutex_mac.cpp +++ b/src/corelib/thread/qmutex_mac.cpp @@ -53,8 +53,7 @@ QT_BEGIN_NAMESPACE -QMutexPrivate::QMutexPrivate(QMutex::RecursionMode mode) - : recursive(mode == QMutex::Recursive) +QMutexPrivate::QMutexPrivate() { kern_return_t r = semaphore_create(mach_task_self(), &mach_semaphore, SYNC_POLICY_FIFO, 0); if (r != KERN_SUCCESS) |