mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-15 05:22:53 +08:00
Update architecture documentation
This commit is contained in:
parent
a78b52134f
commit
58b5657b3b
File diff suppressed because one or more lines are too long
Binary file not shown.
Before Width: | Height: | Size: 267 KiB After Width: | Height: | Size: 251 KiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
@ -299,10 +299,14 @@ void Generator::readData(const QByteArray &data)
|
||||
// Create new worker thread to read JSON data
|
||||
if (processFramesInSeparateThread())
|
||||
{
|
||||
// clang-format off
|
||||
QThread *thread = new QThread;
|
||||
JSONWorker *worker
|
||||
= new JSONWorker(data, m_frameCount, QDateTime::currentDateTime());
|
||||
JSONWorker *worker = new JSONWorker(data,
|
||||
m_frameCount,
|
||||
QDateTime::currentDateTime());
|
||||
worker->moveToThread(thread);
|
||||
// clang-format on
|
||||
|
||||
connect(thread, SIGNAL(started()), worker, SLOT(process()));
|
||||
connect(worker, SIGNAL(finished()), thread, SLOT(quit()));
|
||||
connect(worker, SIGNAL(finished()), worker, SLOT(deleteLater()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user