mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-10 14:23:27 -05:00
27 lines
621 B
C++
27 lines
621 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(!stopping) {
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
|
// std::this_thread::yield();
|
|
sproc.run();
|
|
}
|
|
|
|
// std::cout << "Spectrum visual data thread done." << std::endl;
|
|
}
|
|
|