summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrank Meerkötter <frank.meerkoetter@basyskom.com>2020-12-16 22:07:07 +0100
committerFrank Meerkötter <frank.meerkoetter@basyskom.com>2020-12-17 17:24:53 +0100
commit98acc64e0b672d7df5698bd1deab08e1e0c4c480 (patch)
tree8ef977529f217a1c1f9fb83a391f5724696afc1a /src
parenta66dc98f225b992cf8634da43c3ca6e9094717d1 (diff)
Set a thread name for the background worker
Make it easier to see the background workers in the debugger at a glance. Change-Id: I9ffc0199d793b05c9005f30250cc3052309714f0 Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/opcua/open62541/qopen62541client.cpp1
-rw-r--r--src/plugins/opcua/uacpp/quacppclient.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/opcua/open62541/qopen62541client.cpp b/src/plugins/opcua/open62541/qopen62541client.cpp
index f4ae072..de1b6e8 100644
--- a/src/plugins/opcua/open62541/qopen62541client.cpp
+++ b/src/plugins/opcua/open62541/qopen62541client.cpp
@@ -63,6 +63,7 @@ QOpen62541Client::QOpen62541Client(const QVariantMap &backendProperties)
m_backend->m_minimumIterateInterval = minIterateInterval;
m_thread = new QThread();
+ m_thread->setObjectName("QOpen62541Client");
connectBackendWithClient(m_backend);
m_backend->moveToThread(m_thread);
connect(m_thread, &QThread::finished, m_thread, &QObject::deleteLater);
diff --git a/src/plugins/opcua/uacpp/quacppclient.cpp b/src/plugins/opcua/uacpp/quacppclient.cpp
index 2b66bc8..d0ba644 100644
--- a/src/plugins/opcua/uacpp/quacppclient.cpp
+++ b/src/plugins/opcua/uacpp/quacppclient.cpp
@@ -61,6 +61,7 @@ QUACppClient::QUACppClient(const QVariantMap &backendProperties)
}
m_thread = new QThread();
+ m_thread->setObjectName("QUaCppClient");
connectBackendWithClient(m_backend);
m_backend->moveToThread(m_thread);
connect(m_thread, &QThread::finished, m_thread, &QObject::deleteLater);