summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qmutex_p.h
diff options
context:
space:
mode:
authormread <qt-info@nokia.com>2011-02-09 08:18:36 (GMT)
committermread <qt-info@nokia.com>2011-03-09 12:45:07 (GMT)
commit834ad29849ebef99d7e5c516cde26d550abff7cd (patch)
treec3da2435c2bb23948eaff22c93f7f70fcd2c9aea /src/corelib/thread/qmutex_p.h
parentf351340d328a896829779794e8810f0d913161fb (diff)
downloadQt-834ad29849ebef99d7e5c516cde26d550abff7cd.zip
Qt-834ad29849ebef99d7e5c516cde26d550abff7cd.tar.gz
Qt-834ad29849ebef99d7e5c516cde26d550abff7cd.tar.bz2
Symbian native implementation of corelib/thread
QThread, QWaitCondition and QMutex have new Symbian native implementations. These new implementations are split out into new _symbian files. Task-number: QTBUG-13990 Reviewed-by: Shane Kearns
Diffstat (limited to 'src/corelib/thread/qmutex_p.h')
-rw-r--r--src/corelib/thread/qmutex_p.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/corelib/thread/qmutex_p.h b/src/corelib/thread/qmutex_p.h
index 1a31c87..789d1f0 100644
--- a/src/corelib/thread/qmutex_p.h
+++ b/src/corelib/thread/qmutex_p.h
@@ -62,6 +62,11 @@
# include <mach/semaphore.h>
#endif
+#if defined(Q_OS_SYMBIAN)
+# include <e32std.h>
+#undef QT_SYMBIAN_USE_RFASTLOCK
+#endif
+
QT_BEGIN_NAMESPACE
class QMutexPrivate : public QMutexData {
@@ -81,12 +86,18 @@ public:
#if defined(Q_OS_MAC)
semaphore_t mach_semaphore;
-#elif defined(Q_OS_UNIX) && !defined(Q_OS_LINUX)
+#elif defined(Q_OS_UNIX) && !defined(Q_OS_LINUX) && !defined(Q_OS_SYMBIAN)
volatile bool wakeup;
pthread_mutex_t mutex;
pthread_cond_t cond;
#elif defined(Q_OS_WIN32) || defined(Q_OS_WINCE)
HANDLE event;
+#elif defined(Q_OS_SYMBIAN)
+# ifdef QT_SYMBIAN_USE_RFASTLOCK
+ RFastLock lock;
+# else
+ RSemaphore lock;
+# endif
#endif
};