mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-16 00:51:49 -05:00
27 lines
619 B
C++
27 lines
619 B
C++
#include "SpectrumVisualDataThread.h"
|
|
#include "CubicSDR.h"
|
|
|
|
SpectrumVisualDataThread::SpectrumVisualDataThread() {
|
|
}
|
|
|
|
SpectrumVisualDataThread::~SpectrumVisualDataThread() {
|
|
|
|
}
|
|
|
|
SpectrumVisualProcessor *SpectrumVisualDataThread::getProcessor() {
|
|
return &sproc;
|
|
}
|
|
|
|
void SpectrumVisualDataThread::run() {
|
|
std::cout << "Spectrum visual data thread started." << std::endl;
|
|
|
|
while(!terminated) {
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
|
// std::this_thread::yield();
|
|
sproc.run();
|
|
}
|
|
|
|
std::cout << "Spectrum visual data thread done." << std::endl;
|
|
}
|
|
|