diff options
author | Johannes Oikarinen <johannes.oikarinen@digia.com> | 2009-06-29 09:47:27 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2009-07-13 08:15:13 (GMT) |
commit | 2ec096f3ea86a5572f5e5137ec76b7d9f275b405 (patch) | |
tree | b0cacac3bc7fe5572e56db32684e3a9cce0f46e9 /src | |
parent | 5bd2444e86a90494c453e36bc7a4bb35654e7fa0 (diff) | |
download | Qt-2ec096f3ea86a5572f5e5137ec76b7d9f275b405.zip Qt-2ec096f3ea86a5572f5e5137ec76b7d9f275b405.tar.gz Qt-2ec096f3ea86a5572f5e5137ec76b7d9f275b405.tar.bz2 |
Make non-zero timers high priority.
Timers are constructed with CActive::EPriorityHigh if they are
non-zero timers. If zero timer CActive::EPriorityLow is used.
Task: 256620
Signed-off-by: axis <qt-info@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/kernel/qeventdispatcher_symbian.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/corelib/kernel/qeventdispatcher_symbian.cpp b/src/corelib/kernel/qeventdispatcher_symbian.cpp index 108c329..34a20da 100644 --- a/src/corelib/kernel/qeventdispatcher_symbian.cpp +++ b/src/corelib/kernel/qeventdispatcher_symbian.cpp @@ -51,7 +51,8 @@ QT_BEGIN_NAMESPACE #define WAKE_UP_PRIORITY CActive::EPriorityStandard -#define TIMER_PRIORITY CActive::EPriorityLow +#define TIMER_PRIORITY CActive::EPriorityHigh +#define NULLTIMER_PRIORITY CActive::EPriorityLow #define COMPLETE_DEFERRED_ACTIVE_OBJECTS_PRIORITY CActive::EPriorityIdle static inline int qt_pipe_write(int socket, const char *data, qint64 len) @@ -197,7 +198,7 @@ void QWakeUpActiveObject::RunL() } QTimerActiveObject::QTimerActiveObject(QEventDispatcherSymbian *dispatcher, SymbianTimerInfo *timerInfo) - : QActiveObject(TIMER_PRIORITY, dispatcher), + : QActiveObject((timerInfo->interval) ? TIMER_PRIORITY : NULLTIMER_PRIORITY , dispatcher), m_timerInfo(timerInfo) { } |