Debugger: Fix livelock on exit (Windows)
authorKai Koehne <kai.koehne@nokia.com>
Tue, 20 Dec 2011 12:41:50 +0000 (13:41 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 20 Dec 2011 16:25:15 +0000 (17:25 +0100)
commit83c5b4c199d66a4529b180abd2b5f67fbb221deb
tree4ec54537094a3a75997b04dbe9aeb99710a50c36
parentd0096381d2229db897dbd44f7ee476d4ed03a5f7
Debugger: Fix livelock on exit (Windows)

We used to close the debugger thread when the last service was killed: This happened
in the unloading of static global variables. Apparently this is too late on Windows,
since the OS thread associated was already terminated.

Instead, we now kill the instance when the QCoreApplication event loop is exiting.

Change-Id: I12a46ab9e7ac64561c94c0cd0d88b78fbaf8554c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
src/declarative/debugger/qdeclarativedebugserver.cpp
src/declarative/debugger/qdeclarativedebugserver_p.h