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>
Sat, 25 Feb 2012 07:23:51 +0000 (08:23 +0100)
commitbf66eebbc28b1f405a49a68d3f6c341d433159ea
tree5675e3304751d70f521a580acd529699c4c71e5e
parent77772f21deeadde6eee0a51cb87bf5ee07f67966
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>
src/corelib/thread/qthread_win.cpp