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_unix.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_unix.cpp')
-rw-r--r-- | src/corelib/thread/qmutex_unix.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/thread/qmutex_unix.cpp b/src/corelib/thread/qmutex_unix.cpp index 0bccad589d..b693088015 100644 --- a/src/corelib/thread/qmutex_unix.cpp +++ b/src/corelib/thread/qmutex_unix.cpp @@ -60,8 +60,8 @@ static void report_error(int code, const char *where, const char *what) qWarning("%s: %s failure: %s", where, what, qPrintable(qt_error_string(code))); } -QMutexPrivate::QMutexPrivate(QMutex::RecursionMode mode) - : recursive(mode == QMutex::Recursive), wakeup(false) +QMutexPrivate::QMutexPrivate() + : wakeup(false) { report_error(pthread_mutex_init(&mutex, NULL), "QMutex", "mutex init"); report_error(pthread_cond_init(&cond, NULL), "QMutex", "cv init"); |