From f5190b12af6dbeb3f98831276a0bd4e49467500a Mon Sep 17 00:00:00 2001 From: mread Date: Thu, 10 Mar 2011 09:55:25 +0000 Subject: 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 --- src/corelib/thread/qthread_symbian.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/corelib/thread/qthread_symbian.cpp b/src/corelib/thread/qthread_symbian.cpp index 02d671b..40764b2 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); -- cgit v0.12