mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-10-17 21:01:12 -04:00
TH_CLEAN_3: Use of non-blocking try_pop() when possible,
AudioThread concurrent access hardening and simplified, and misc.
This commit is contained in:
@@ -215,11 +215,14 @@ void SDRPostThread::run() {
|
||||
if (doUpdate) {
|
||||
updateActiveDemodulators();
|
||||
}
|
||||
}
|
||||
} //end while
|
||||
|
||||
if (iqVisualQueue && !iqVisualQueue->empty()) {
|
||||
DemodulatorThreadIQData *visualDataDummy;
|
||||
iqVisualQueue->pop(visualDataDummy);
|
||||
//TODO: Why only 1 element was removed before ?
|
||||
DemodulatorThreadIQData *visualDataDummy;
|
||||
while (iqVisualQueue && iqVisualQueue->try_pop(visualDataDummy)) {
|
||||
//nothing
|
||||
//TODO: What about the refcounts ?
|
||||
|
||||
}
|
||||
|
||||
// buffers.purge();
|
||||
|
||||
Reference in New Issue
Block a user