更改前

This commit is contained in:
2021-12-14 14:52:29 +08:00
parent b101e74763
commit 2df12d4e5c
10 changed files with 105 additions and 36 deletions

View File

@ -43,24 +43,32 @@ int main(int argc, char *argv[])
CMainDataGrabber testDG;
QThread* m_pqDataGrabberThreadHolder = new QThread();
testDG.moveToThread(m_pqDataGrabberThreadHolder);
testDG.SetGrabberFileProcessor(testdp);
testDG.SetGrabberParams(testp);
testDG.SetTimer(testS);
testDG.InitThreadStatus();
testDG.InitializeWorkers();
testDG.InitLS();
testDG.SetupMsgPipelines();
testDG.StartWorkers();
testDG.SetContext(testp, testdp, testS);
testDG.Init_Normal();
//testDG.SetGrabberFileProcessor(testdp);
//testDG.SetGrabberParams(testp);
//testDG.SetTimer(testS);
//testDG.InitThreadStatus();
//testDG.InitializeWorkers();
//testDG.SetupMsgPipelines();
//testDG.StartWorkers();
m_pqDataGrabberThreadHolder->start();
testDG.Init_Self();
//testDG.InitThreadStatus();
//testDG.InitializeWorkers();
//testDG.InitLS();
//testDG.SetupMsgPipelines();
//testDG.StartWorkers();
m_pqDataGrabberThreadHolder->start();
//testDG.StartGrab();
QThread* m_pqTimerThreadHolder = new QThread();
testS.moveToThread(m_pqTimerThreadHolder);
m_pqTimerThreadHolder->start();
testS.SelfStart();
QThread* m_pqTimerThreadHolder = new QThread();
testS.moveToThread(m_pqTimerThreadHolder);
m_pqTimerThreadHolder->start();
testS.SelfStart();
//QString qstrTest = "This is a test message 2";
//qDebug() << qstrTest;