diff options
author | mread <qt-info@nokia.com> | 2011-03-10 09:55:25 +0000 |
---|---|---|
committer | mread <qt-info@nokia.com> | 2011-03-10 10:09:45 +0000 |
commit | f5190b12af6dbeb3f98831276a0bd4e49467500a (patch) | |
tree | d12c4971eb0de74b3d3ece90d9bd3a4b51d66c1f /src/corelib/thread | |
parent | e496be83f0ba8849cace30078223eb0fd40f004e (diff) |
Copying change to unix and Windows QThread implementation to Symbian
During merge of SymbianLite branch, it was found that windows and unix
QThread implementations had an identical change to locking on thread
start. This change is now also applied to Symbian.
Reviewed-by: iain
Diffstat (limited to 'src/corelib/thread')
-rw-r--r-- | src/corelib/thread/qthread_symbian.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/thread/qthread_symbian.cpp b/src/corelib/thread/qthread_symbian.cpp index 02d671b6ea..40764b21b3 100644 --- a/src/corelib/thread/qthread_symbian.cpp +++ b/src/corelib/thread/qthread_symbian.cpp @@ -289,7 +289,10 @@ void *QThreadPrivate::start(void *arg) set_thread_data(data); - data->quitNow = false; + { + QMutexLocker locker(&thr->d_func()->mutex); + data->quitNow = thr->d_func()->exited; + } // ### TODO: allow the user to create a custom event dispatcher createEventDispatcher(data); |