提交 a2f46acf 编写于 作者: D dev@dev.com

Merge branch 'master' of git@codechina.csdn.net:coloreaglestdio/uhd_spectrum.git

...@@ -383,6 +383,7 @@ void specWidget::initTx() ...@@ -383,6 +383,7 @@ void specWidget::initTx()
run_TxIO(); run_TxIO();
}); });
m_dataproduce_ok = false;
read_count = m_rx_bufsz/2; read_count = m_rx_bufsz/2;
m_tx_points = 0; m_tx_points = 0;
//读取文件 //读取文件
...@@ -439,13 +440,19 @@ void specWidget::initTx() ...@@ -439,13 +440,19 @@ void specWidget::initTx()
} }
} }
else else
{
if (!m_dataproduce_ok)
m_dataproduce_ok = true;
QThread::msleep(10); QThread::msleep(10);
}
} }
if (fIn.isOpen()) if (fIn.isOpen())
fIn.close(); fIn.close();
}); });
m_readth->start(); m_readth->start();
QThread::msleep(1000); while (!m_dataproduce_ok && ! stop_signal_called)
QThread::msleep(10);
m_txth->start(); m_txth->start();
} }
......
...@@ -110,6 +110,7 @@ private: ...@@ -110,6 +110,7 @@ private:
unsigned long long read_count; unsigned long long read_count;
std::atomic<bool> m_bSaveToFile; std::atomic<bool> m_bSaveToFile;
std::atomic<bool> m_bPlayFromFile; std::atomic<bool> m_bPlayFromFile;
std::atomic<bool> m_dataproduce_ok;
QString m_strFolder; QString m_strFolder;
QString m_strFolderPlay; QString m_strFolderPlay;
//stdout reader //stdout reader
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册