添加了新的控制基类,现在iSIF和IS1的控制类将派生自基类;学习并测试了Qthread一些功能;测试了QMutex的一些功能

This commit is contained in:
2021-11-08 16:59:50 +08:00
parent 377be64388
commit 9c93e66a05
11 changed files with 254 additions and 33 deletions

View File

@ -1 +1,31 @@
#pragma once
#include"pch.h"
#include "ThreadIS1Controller.h"
#include "ThreadiSIFController.h"
class ZZ_DataGrabberThread :public QObject
{
Q_OBJECT
public:
ZZ_DataGrabberThread(QObject* parent = nullptr);
~ZZ_DataGrabberThread();
public:
private:
ZZ_iSIFControlThread m_tcISIFCtrlThread;
ZZ_IS1ControlThread m_tcIS1CtrlThread;
QThread* m_pqISIFThreadHolder;
QThread* m_pqIS1ThreadHolder;
public:
int SetupSignals();
int StartGrabberThread();
private:
public slots:
int TestGrab();
int StopTestGrab();
signals:
void SignalStartGrabOnce();
void SignalStopGrab();
};