Make QQmlDebugService::registerService() private and part of ctor
authorUlf Hermann <ulf.hermann@theqtcompany.com>
Mon, 13 Jul 2015 14:38:25 +0000 (16:38 +0200)
committerUlf Hermann <ulf.hermann@theqtcompany.com>
Thu, 30 Jul 2015 14:55:19 +0000 (14:55 +0000)
commit6557b7118897347ccf7c5915c169cf86c818be83
treee7e67d77b5255222edbd620bd6ae77ec50052ee4
parent52e782bdc56fb3a62b045f2d1ca71f38bc7ef796
Make QQmlDebugService::registerService() private and part of ctor

By forcing all debug services to register before the thread starts we
can get rid of the complicated thread synchronization and have a more
natural API for the services.

We can also better enforce the thread situation when registering
services in QQmlDebugServer now. QQmlProfilerService should not
moveToThread() in its constructor as the thread has not been started,
yet. The thread affinity of QQmlProfilerService doesn't make any
difference anyway, as all relevant methods are protected by mutexes
and it doesn't have any slots.

Change-Id: I57db9e2bf94ec6884ede694715dadf5bfd687334
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
12 files changed:
src/qml/debugger/qdebugmessageservice.cpp
src/qml/debugger/qqmlconfigurabledebugservice.cpp
src/qml/debugger/qqmldebugserver.cpp
src/qml/debugger/qqmldebugservice.cpp
src/qml/debugger/qqmlenginecontrolservice.cpp
src/qml/debugger/qqmlenginedebugservice.cpp
src/qml/debugger/qqmlinspectorservice.cpp
src/qml/debugger/qqmlprofilerservice.cpp
tests/auto/qml/debugger/qqmldebugclient/tst_qqmldebugclient.cpp
tests/auto/qml/debugger/qqmldebuglocal/tst_qqmldebuglocal.cpp
tests/auto/qml/debugger/qqmldebugservice/tst_qqmldebugservice.cpp
tests/auto/qml/debugger/shared/qqmldebugtestservice.cpp