mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-19 11:49:42 +08:00
完善了保存信息文件的定义,添加了读写JSON配置文件的代码。身体原因这两天效率不高。
This commit is contained in:
@ -1,3 +1,6 @@
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//<2F><><EFBFBD>ɼ<EFBFBD><C9BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߳<EFBFBD>
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
#pragma once
|
||||
#include"pch.h"
|
||||
#include "ThreadIS1Controller.h"
|
||||
@ -11,8 +14,8 @@ public:
|
||||
~ZZ_DataGrabberThread();
|
||||
|
||||
public:
|
||||
QWaitCondition m_wcWaitISIF,m_wcWaitIS1;
|
||||
QMutex m_mTestMutex;
|
||||
//QWaitCondition m_wcWaitISIF,m_wcWaitIS1;
|
||||
//QMutex m_mTestMutex;
|
||||
private:
|
||||
ZZ_iSIFControlThread m_tcISIFCtrlThread;
|
||||
ZZ_IS1ControlThread m_tcIS1CtrlThread;
|
||||
@ -20,18 +23,22 @@ private:
|
||||
QThread* m_pqIS1ThreadHolder;
|
||||
|
||||
std::atomic<bool> m_bFlagIsCollecting;
|
||||
std::atomic<bool> m_bFlagIsCollectingFinished;
|
||||
int *m_piFlagCaptureThreadStatus;
|
||||
const int m_iTotalThreads = 2;
|
||||
|
||||
public:
|
||||
int SetupSignals();
|
||||
int StartGrabberThread();
|
||||
private:
|
||||
|
||||
int InitThreadStatus();
|
||||
public slots:
|
||||
int TestGrab();
|
||||
int TestGrabOnce();
|
||||
int TestStopGrab();
|
||||
int handleThreadEvent(int x, int value);
|
||||
int HandleThreadEvent(int iThreadID, int iFlagStatus);
|
||||
signals:
|
||||
void SignalStartGrabOnce();
|
||||
void SignalStopGrab();
|
||||
|
||||
void SignalGrabOnceFinished();
|
||||
};
|
||||
|
Reference in New Issue
Block a user