mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-23 04:59:42 +08:00
简单了解了QJson和QNetworkAccessManager相关的使用方法。
尝试了使用QWaitCondition,QMutex同步线程。未能实现,准备改用状态机
This commit is contained in:
@ -11,12 +11,16 @@ public:
|
||||
~ZZ_DataGrabberThread();
|
||||
|
||||
public:
|
||||
QWaitCondition m_wcWaitISIF,m_wcWaitIS1;
|
||||
QMutex m_mTestMutex;
|
||||
private:
|
||||
ZZ_iSIFControlThread m_tcISIFCtrlThread;
|
||||
ZZ_IS1ControlThread m_tcIS1CtrlThread;
|
||||
QThread* m_pqISIFThreadHolder;
|
||||
QThread* m_pqIS1ThreadHolder;
|
||||
|
||||
std::atomic<bool> m_bFlagIsCollecting;
|
||||
|
||||
public:
|
||||
int SetupSignals();
|
||||
int StartGrabberThread();
|
||||
@ -24,8 +28,10 @@ private:
|
||||
|
||||
public slots:
|
||||
int TestGrab();
|
||||
int StopTestGrab();
|
||||
int TestStopGrab();
|
||||
int handleThreadEvent(int x, int value);
|
||||
signals:
|
||||
void SignalStartGrabOnce();
|
||||
void SignalStopGrab();
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user