Demod worker lock-on-remove fix

This commit is contained in:
Charles J. Cliffe
2015-01-22 23:41:33 -05:00
parent d45d3842bf
commit b2e8cf0482
5 changed files with 17 additions and 4 deletions
+4
View File
@@ -208,6 +208,10 @@ void SDRPostThread::threadMain() {
// std::lock_guard < std::mutex > lock(demodDataDel->m_mutex);
// delete demodDataDel;
}
if (iqVisualQueue.load() && !iqVisualQueue.load()->empty()) {
DemodulatorThreadIQData *visualDataDummy;
iqVisualQueue.load()->pop(visualDataDummy);
}
delete visualDataOut;