diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-12-09 23:18:40 +1000 |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-12-09 23:18:40 +1000 |
commit | 6eefc825b3be3ae9d695a08b6990e82a87d48481 (patch) | |
tree | 3e0bb1b383c6d7cd083572acf3611762993ae00c | |
parent | 5aa3363f939278067eac223c4c3d34f820f52318 (diff) | |
parent | b8f70279399a6bce8305772cdbd0a2e260e23ef8 (diff) | |
download | qt4-tools-6eefc825b3be3ae9d695a08b6990e82a87d48481.tar.gz |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-symbian-staging into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/qt-symbian-staging:
Symbian: improving diagnostics for QWaitCondition
-rw-r--r-- | src/corelib/thread/qwaitcondition_symbian.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/thread/qwaitcondition_symbian.cpp b/src/corelib/thread/qwaitcondition_symbian.cpp index c6414e85c2..ed1011c696 100644 --- a/src/corelib/thread/qwaitcondition_symbian.cpp +++ b/src/corelib/thread/qwaitcondition_symbian.cpp @@ -112,7 +112,10 @@ public: --wakeups; } - mutex.Signal(); + // if err is KErrGeneral it signals that the RCondVar is closed along with the mutex and that this has been deleted + // we must not access any member variables in this case + if (err != KErrGeneral) + mutex.Signal(); if (err && err != KErrTimedOut) report_error(err, "QWaitCondition::wait()", "cv wait"); |