mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-08-06 19:06:19 -04:00
SDR thread reusable buffers implemented
This commit is contained in:
@@ -58,6 +58,7 @@ void SDRPostThread::threadMain() {
|
||||
SDRThreadIQData *data_in;
|
||||
|
||||
iqDataInQueue.load()->pop(data_in);
|
||||
// std::lock_guard < std::mutex > lock(data_in->m_mutex);
|
||||
|
||||
if (data_in && data_in->data.size()) {
|
||||
SDRThreadIQData *dataOut = new SDRThreadIQData;
|
||||
@@ -176,9 +177,7 @@ void SDRPostThread::threadMain() {
|
||||
}
|
||||
delete dataOut;
|
||||
}
|
||||
if (data_in) {
|
||||
delete data_in;
|
||||
}
|
||||
data_in->decRefCount();
|
||||
}
|
||||
|
||||
while (!buffers.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user