From bc064c38c6cf9005da683f1b0deb56e039d143e8 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Mon, 6 May 2024 06:23:52 +0200 Subject: [PATCH] use only one thread --- DownloadDCFirmware/worker_thread.cpp | 13 +++++++++++++ DownloadDCFirmware/worker_thread.h | 20 ++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 DownloadDCFirmware/worker_thread.cpp create mode 100644 DownloadDCFirmware/worker_thread.h diff --git a/DownloadDCFirmware/worker_thread.cpp b/DownloadDCFirmware/worker_thread.cpp new file mode 100644 index 0000000..ff55461 --- /dev/null +++ b/DownloadDCFirmware/worker_thread.cpp @@ -0,0 +1,13 @@ +#include "worker_thread.h" + +WorkerThread::WorkerThread(QObject *parent) + : QThread(parent) { +} + +WorkerThread::~WorkerThread() { + +} + +void WorkerThread::run() { + +} diff --git a/DownloadDCFirmware/worker_thread.h b/DownloadDCFirmware/worker_thread.h new file mode 100644 index 0000000..9c8ed6b --- /dev/null +++ b/DownloadDCFirmware/worker_thread.h @@ -0,0 +1,20 @@ +#ifndef WORKER_THREAD_H_INCLUDED +#define WORKER_THREAD_H_INCLUDED + +#include + +class WorkerThread : public QThread { + Q_OBJECT + +public: + explicit WorkerThread(QObject *parent = nullptr); + ~WorkerThread(); + + +private: + void run() override; + + bool m_quit = false; +}; + +#endif // WORKER_THREAD_H_INCLUDED