From c5c7ce758c991e760015fa60194a154e2ecbc622 Mon Sep 17 00:00:00 2001 From: mread Date: Fri, 18 Feb 2011 10:25:57 +0000 Subject: Making RFastLock work for QMutex It needed an initial lock to make it behave like a semaphore. Task-number: QTBUG-13990 Reviewed-by: Shane Kearns --- src/corelib/thread/qmutex_symbian.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/corelib/thread/qmutex_symbian.cpp b/src/corelib/thread/qmutex_symbian.cpp index 09c59af..c5671f5 100644 --- a/src/corelib/thread/qmutex_symbian.cpp +++ b/src/corelib/thread/qmutex_symbian.cpp @@ -57,6 +57,8 @@ QMutexPrivate::QMutexPrivate(QMutex::RecursionMode mode) { #ifdef QT_SYMBIAN_USE_RFASTLOCK int r = lock.CreateLocal(); + if (r == KErrNone) + lock.Wait(); #else int r = lock.CreateLocal(0); #endif -- cgit v0.12