Debugger: Move server into it's own thread
authorKai Koehne <kai.koehne@nokia.com>
Wed, 24 Aug 2011 11:51:07 +0000 (13:51 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 22 Nov 2011 12:45:27 +0000 (13:45 +0100)
commit43e20d57011bbddd3beec773f6a8efb1269a8ead
treee07e5b858582e6d689a188073a82249687be4c0e
parent774eebf9978ac3bf68b124a9e88729cd21068433
Debugger: Move server into it's own thread

So far the debugger infrastructure was running in the GUI thread,
which required e.g. nested event loops to implement blocking behavior.
The server and networking code are now running in their own thread,
while the services are still running in the main thread.

Because v8 isn't thread safe, we're adding two new JSEngines + isolates
to qv8debugservice: One to decode JSON messages in the debugger thread,
and one in the GUI thread.

Change-Id: I746f5e203968f7bcc510fb66118c88ef0fd0cd14
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
src/declarative/debugger/qdeclarativedebugserver.cpp
src/declarative/debugger/qdeclarativedebugserver_p.h
src/declarative/debugger/qdeclarativeenginedebugservice.cpp
src/declarative/debugger/qdeclarativeenginedebugservice_p.h
src/declarative/debugger/qdeclarativeinspectorservice.cpp
src/declarative/debugger/qdeclarativeinspectorservice_p.h
src/declarative/debugger/qv8debugservice.cpp
src/declarative/debugger/qv8debugservice_p.h
src/declarative/debugger/qv8profilerservice.cpp
tests/auto/declarative/debugger/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp
tests/auto/declarative/debugger/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp