QThread: fix race when setting the eventDispatcher
authorAndy Shaw <andy.shaw@digia.com>
Fri, 6 Feb 2015 09:50:29 +0000 (10:50 +0100)
committerAndy Shaw <andy.shaw@digia.com>
Sun, 8 Feb 2015 11:48:28 +0000 (11:48 +0000)
commit97b85f4f4e7fc14ff47cd92e4525f7a56864bff4
tree48cdc7e92aa52adafc76a963792fffbb5ae33887
parent6d5a2db97d6f19f4ccc446473adc40a922e1a7ea
QThread: fix race when setting the eventDispatcher

Use QMutexLocker to make this thread-safe.

Task-number: QTBUG-29452
(cherry picked and adapted from qtbase/f4609b202208fe592d24c7ae3b4a48ee83045497)
Change-Id: I5caf71d9a5dc6e3d655eac84426a0c5592772235
Reviewed-by: Louai Al-Khanji <louai.al-khanji@theqtcompany.com>
src/corelib/thread/qthread_symbian.cpp
src/corelib/thread/qthread_unix.cpp
src/corelib/thread/qthread_win.cpp