简单了解了QJson和QNetworkAccessManager相关的使用方法。

尝试了使用QWaitCondition,QMutex同步线程。未能实现,准备改用状态机
This commit is contained in:
2021-11-09 17:45:04 +08:00
parent 9c93e66a05
commit b9bece4de9
10 changed files with 114 additions and 34 deletions

View File

@ -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();
};