void QQmlDebugServer::receiveMessage(const QByteArray &message)
{
+ // to be executed in debugger thread
+ Q_ASSERT(QThread::currentThread() == thread());
+
Q_D(QQmlDebugServer);
QDataStream in(message);
bool QQmlDebugServer::addService(QQmlDebugService *service)
{
Q_D(QQmlDebugServer);
+
+ // to be executed in GUI thread
+ Q_ASSERT(QThread::currentThread() == QCoreApplication::instance()->thread());
+
{
QWriteLocker(&d->pluginsLock);
if (!service || d->plugins.contains(service->name()))
bool QQmlDebugServer::removeService(QQmlDebugService *service)
{
Q_D(QQmlDebugServer);
+
+ // to be executed in GUI thread
+ Q_ASSERT(QThread::currentThread() == QCoreApplication::instance()->thread());
+
{
QWriteLocker(&d->pluginsLock);
QQmlDebugService::State newState = QQmlDebugService::NotConnected;
bool QQmlDebugServer::waitForMessage(QQmlDebugService *service)
{
+ // to be executed in GUI thread
+ Q_ASSERT(QThread::currentThread() == QCoreApplication::instance()->thread());
+
Q_D(QQmlDebugServer);
QReadLocker(&d->pluginsLock);