mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-18 19:39:43 +08:00
更新了底层逻辑
This commit is contained in:
55
UnSupported/ThreadDataGrabber.h
Normal file
55
UnSupported/ThreadDataGrabber.h
Normal file
@ -0,0 +1,55 @@
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//<2F><><EFBFBD>ɼ<EFBFBD><C9BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߳<EFBFBD>
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
#pragma once
|
||||
#include"pch.h"
|
||||
#include <vector>
|
||||
using namespace std;
|
||||
using namespace ZZ_MISCDEF::ZZ_RUNPARAMS;
|
||||
class ZZ_DataGrabberThread :public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ZZ_DataGrabberThread(QObject* parent = nullptr);
|
||||
~ZZ_DataGrabberThread();
|
||||
|
||||
public:
|
||||
//QWaitCondition m_wcWaitISIF,m_wcWaitIS1;
|
||||
//QMutex m_mTestMutex;
|
||||
private:
|
||||
vector<ZZ_ATPAbsCtrlThread *> m_pControlThread;
|
||||
|
||||
//ZZ_iSIFControlThread m_tcISIFCtrlThread;
|
||||
//ZZ_IS1ControlThread m_tcIS1CtrlThread;
|
||||
QThread* m_pqISIFThreadHolder;
|
||||
QThread* m_pqIS1ThreadHolder;
|
||||
|
||||
std::atomic<bool> m_bFlagIsCollecting;
|
||||
std::atomic<bool> m_bFlagIsCollectingFinished;
|
||||
int *m_piFlagCaptureThreadStatus;
|
||||
const int m_iTotalThreads = 2;
|
||||
|
||||
QTimer *m_GrabTimer;
|
||||
AcqTimeSettings m_struAcqTime;
|
||||
public:
|
||||
void SetGrabTimer(AcqTimeSettings struAcqTimer);
|
||||
|
||||
int SetupSignals();
|
||||
int StartGrabCall();
|
||||
|
||||
private:
|
||||
int OnTimeCounter();
|
||||
int InitThreadStatus();
|
||||
int StartGrabberThread();
|
||||
public slots:
|
||||
int TestGrab();
|
||||
int TestGrabOnce();
|
||||
int TestStopGrab();
|
||||
int HandleThreadEvent(int iThreadID, int iFlagStatus);
|
||||
int StartGrab();
|
||||
signals:
|
||||
void SignalStartGrabOnce();
|
||||
void SignalStopGrab();
|
||||
void SignalGrabOnceFinished();
|
||||
void SignalStartGrab();
|
||||
};
|
Reference in New Issue
Block a user