Fix to exit of adopted thread watcher in Windows
authorjian liang <jianliang79@gmail.com>
Sat, 18 Feb 2012 00:43:29 +0000 (08:43 +0800)
committerQt by Nokia <qt-info@nokia.com>
Tue, 28 Feb 2012 14:35:06 +0000 (15:35 +0100)
commit91cf813c816582188ef8943b29338c3db06d1133
tree923ed21e0885867531485199a106089c018a885c
parent50ad6db629ecd268192023ad97577c51c9b19c32
Fix to exit of adopted thread watcher in Windows

Don't register the thread handle and QThread object pointer to watch list
for adopted thread watcher thread in Windows. Otherwise the watcher thread
will never exit and can't clean up its own QThreadData and QAdoptedThread
object.

Task-number: QTBUG-23961

Change-Id: Ia84326cf3cfd978d2b003ccc1bb6861db950e899
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
(cherry picked from commit bf66eebbc28b1f405a49a68d3f6c341d433159ea)
src/corelib/thread/qthread_win.cpp