summaryrefslogtreecommitdiffstats
path: root/src/s60installs/eabi
diff options
context:
space:
mode:
authorMurray Read <ext-murray.2.read@nokia.com>2012-02-08 14:16:27 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-02-09 15:23:50 (GMT)
commita13b2a248e5091ddf21e3c5ac08c9ddf0b940b5b (patch)
tree8f1e58987a7c2178af754d871d40782296fad496 /src/s60installs/eabi
parenta784bdcabe895ab927cbc28118d427c6e932b9fc (diff)
downloadQt-a13b2a248e5091ddf21e3c5ac08c9ddf0b940b5b.zip
Qt-a13b2a248e5091ddf21e3c5ac08c9ddf0b940b5b.tar.gz
Qt-a13b2a248e5091ddf21e3c5ac08c9ddf0b940b5b.tar.bz2
Avoiding early deleteLater in Symbian with better loopLevel tracking
There have been a number of app crashes where deleteLater has been triggering too early, causing an object to be deleted before it has been finished with. This was happening when deleteLater was issued then Symbian's active scheduler loop was nested. Qt keeps track of loop nesting level to implement deleteLater correctly, but it was only tracking the event loop in processEvents and QEventLoop correctly. The wakeup and timer active objects were assuming they were always run from processEvents and its round robin active scheduler and were adjusting the loop level to account for this. However if they happened to run in another event loop, eg the active scheduler, the loop level adjustment meant that it looked like the event loop was re-running at the same level, which allowed deleteLater to act. The fix is to mark active objects as being run from the RR scheduler, then the wakeup and timer active objects can be tested to see which type of scheduler they are actually running in. With this knowledge, the correct loop level adjustment can be made, and deleteLater runs at the correct time. Task-number: ou1cimx1#947013 Change-Id: Id05cd63ad10e100ea807cc276844aaa36c614351 Reviewed-by: Gareth Stockwell <ext-gareth.stockwell@nokia.com> Reviewed-by: Shane Kearns <ext-shane.2.kearns@nokia.com>
Diffstat (limited to 'src/s60installs/eabi')
-rw-r--r--src/s60installs/eabi/QtCoreu.def6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/s60installs/eabi/QtCoreu.def b/src/s60installs/eabi/QtCoreu.def
index 44aa48c..7977492 100644
--- a/src/s60installs/eabi/QtCoreu.def
+++ b/src/s60installs/eabi/QtCoreu.def
@@ -1280,13 +1280,13 @@ EXPORTS
_ZN23QCoreApplicationPrivateD1Ev @ 1279 NONAME
_ZN23QCoreApplicationPrivateD2Ev @ 1280 NONAME
_ZN23QEventDispatcherSymbian10startingUpEv @ 1281 NONAME
- _ZN23QEventDispatcherSymbian10timerFiredEi @ 1282 NONAME
+ _ZN23QEventDispatcherSymbian10timerFiredEi @ 1282 NONAME ABSENT
_ZN23QEventDispatcherSymbian11closingDownEv @ 1283 NONAME
_ZN23QEventDispatcherSymbian11socketFiredEP19QSocketActiveObject @ 1284 NONAME ABSENT
_ZN23QEventDispatcherSymbian13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE @ 1285 NONAME
_ZN23QEventDispatcherSymbian13registerTimerEiiP7QObject @ 1286 NONAME
_ZN23QEventDispatcherSymbian15unregisterTimerEi @ 1287 NONAME
- _ZN23QEventDispatcherSymbian15wakeUpWasCalledEv @ 1288 NONAME
+ _ZN23QEventDispatcherSymbian15wakeUpWasCalledEv @ 1288 NONAME ABSENT
_ZN23QEventDispatcherSymbian16hasPendingEventsEv @ 1289 NONAME
_ZN23QEventDispatcherSymbian16sendPostedEventsEv @ 1290 NONAME
_ZN23QEventDispatcherSymbian16unregisterTimersEP7QObject @ 1291 NONAME
@@ -4169,4 +4169,6 @@ EXPORTS
_ZN21QSymbianSocketManager22removeActiveConnectionEm @ 4168 NONAME
_ZN23QEventDispatcherSymbian17activeObjectErrorEi @ 4169 NONAME
_ZNK21QSymbianSocketManager17activeConnectionsEv @ 4170 NONAME
+ _ZN23QEventDispatcherSymbian10timerFiredEiP18QTimerActiveObject @ 4171 NONAME
+ _ZN23QEventDispatcherSymbian15wakeUpWasCalledEP19QWakeUpActiveObject @ 4172 NONAME