summaryrefslogtreecommitdiffstats
path: root/src/gui/embedded/qwssignalhandler_p.h
diff options
context:
space:
mode:
authorDavid Boddie <david.boddie@nokia.com>2011-06-09 11:55:14 (GMT)
committerDavid Boddie <david.boddie@nokia.com>2011-06-09 11:55:14 (GMT)
commitfc2a790e96be47b4da3e308c5e0272e4840a2618 (patch)
tree4c1cd7998777252463a060d4ce73f284441d7c22 /src/gui/embedded/qwssignalhandler_p.h
parent7b4e52045d17bcc4b3bb1e0973c3af2e48381c5e (diff)
parent3916feefc5ebadba3320029a29ecf02d8934e879 (diff)
downloadQt-fc2a790e96be47b4da3e308c5e0272e4840a2618.zip
Qt-fc2a790e96be47b4da3e308c5e0272e4840a2618.tar.gz
Qt-fc2a790e96be47b4da3e308c5e0272e4840a2618.tar.bz2
Merge branch '4.8' of scm.dev.nokia.troll.no:qt/qt into 4.8
Conflicts: doc/src/declarative/righttoleft.qdoc examples/draganddrop/fridgemagnets/main.cpp examples/script/context2d/main.cpp
Diffstat (limited to 'src/gui/embedded/qwssignalhandler_p.h')
-rw-r--r--src/gui/embedded/qwssignalhandler_p.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/gui/embedded/qwssignalhandler_p.h b/src/gui/embedded/qwssignalhandler_p.h
index dda9c76..217eda1 100644
--- a/src/gui/embedded/qwssignalhandler_p.h
+++ b/src/gui/embedded/qwssignalhandler_p.h
@@ -57,14 +57,17 @@
#ifndef QT_NO_QWS_SIGNALHANDLER
-#include <QtCore/qmap.h>
-#include <QtCore/qvector.h>
+#include <QtCore/qhash.h>
+#include <QtCore/qlist.h>
#include <QtCore/qobjectcleanuphandler.h>
QT_BEGIN_NAMESPACE
typedef void (*qt_sighandler_t)(int);
+class QLock;
+class QWSLock;
+
class QWSSignalHandlerPrivate;
class Q_GUI_EXPORT QWSSignalHandler
@@ -75,17 +78,24 @@ public:
~QWSSignalHandler();
#ifndef QT_NO_QWS_MULTIPROCESS
- inline void addSemaphore(int semno) { semaphores.append(semno); }
- void removeSemaphore(int semno);
+ inline void addLock(QLock *lock) { locks.append(lock); }
+ inline void removeLock(QLock *lock) { locks.removeOne(lock); }
+ inline void addWSLock(QWSLock *wslock) { wslocks.append(wslock); }
+ inline void removeWSLock(QWSLock *wslock) { wslocks.removeOne(wslock); }
#endif
inline void addObject(QObject *object) { (void)objects.add(object); }
private:
QWSSignalHandler();
+
+ void clear();
+
static void handleSignal(int signal);
- QMap<int, qt_sighandler_t> oldHandlers;
+
+ QHash<int, qt_sighandler_t> oldHandlers;
#ifndef QT_NO_QWS_MULTIPROCESS
- QVector<int> semaphores;
+ QList<QLock *> locks;
+ QList<QWSLock *> wslocks;
#endif
QObjectCleanupHandler objects;