2 // analysisthread.cpp: Disk image analysis thread
4 // Part of the WOZ Maker project
6 // (C) 2018 Underground Software
8 // Since this can take a bit of time, we shunt all the heavy lifting to a
9 // separate worker thread so that it doesn't block the GUI thread.
12 #include "analysisthread.h"
22 AnalysisThread::AnalysisThread(QObject * parent): QThread(parent)
27 AnalysisThread::~AnalysisThread()
40 void AnalysisThread::StartAnalysis(void)
46 void AnalysisThread::run()
49 if (Global::a2r == NULL)
52 // Run full tracks first
53 for(uint32_t i=0; i<141; i+=4)
56 int a = rand() & 0x03;
57 Global::trackStatus[i] = (a == 0 ? 3 : a);
61 // Then fill in with half/quarter tracks
62 for(uint32_t i=0; i<141; i++)
68 int a = rand() & 0x03;
69 Global::trackStatus[i] = (a == 0 ? 3 : a);