Commit Graph
22 Commits
Author SHA1 Message Date
Robin Getz 953391c171 repo wide : Name SDRangel-owned threads for debugging
Assign descriptive names to SDRangel threads so thread activity can be
identified when investigating multi-threaded behavior, including crashes,
leaks, and synchronization issues in debuggers and others tools.

Use compact names to fit platform thread-name limits (14 chars) while
retaining the component and thread role where possible.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
2026-09-26 20:26:27 -04:00
Robin Getz 9b10827cb4 PlutoSDR: Report PlutoSDR streaming errors from worker threads
Detect negative return values from rxBufferRefill() and txBufferPush() in
the PlutoSDR input, output, and MIMO worker threads. These calls can fail
asynchronously after the device has successfully started, for example
when the PlutoSDR is disconnected or the underlying I/O connection
encounters an error.

Log the underlying error and emit the error code from the affected worker
thread instead of treating the negative return value as an ordinary
short or incomplete buffer.

This allows asynchronous PlutoSDR acquisition and generation failures to
be propagated out of the worker threads and handled by the device and DSP
error-handling infrastructure, rather than allowing the streaming thread
to continue operating with an invalid device state.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
2026-09-04 19:36:56 -04:00
Robin Getz 8fda50c215 PlutoSDR : Fix PlutoSDR input thread memory leak
AddressSanitizer (ASAN) reports a memory leak from the buffer conversion
memory allocated by PlutoSDRInputThread. The memory was not released when
the thread was destroyed, causing the allocation to persist after the
device was closed.

Delete the conversion buffer in the thread destructor so the allocation is
properly released and the leak reported by ASAN is eliminated.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
2026-09-04 19:28:02 -04:00
Daniele Forsi 8c3f7e3775 Remove unused includes and use more direct includes 2024-04-11 23:31:34 +02:00
f4exb b6c4d10b62 Rewriting of copyright notices for plugins/samplesource. Part of #1893 2023-11-18 10:07:41 +01:00
f4exb 54222ff016 PlutoSDRBox: use channels registered at contruction time 2021-05-04 17:01:47 +02:00
Felix Schneider c4ccb59e95 Clean up iq sampling fix 2020-08-19 10:02:50 +02:00
Felix Schneider 7848b01987 Open both I and Q channels on plutosdr and change the inputthread accordingly 2020-08-19 09:11:20 +02:00
f4exb cc5d614f67 IQ swap: initial implementation in plugins 2020-06-23 19:29:58 +02:00
f4exb 4bb0f4f51a Fixed incomplete copyright headers (2): plugins/samplesource 2019-04-11 06:57:41 +02:00
f4exb f96978d196 Windows MSVC2017: PlutoSDR support 2018-11-28 18:30:11 +01:00
f4exb d978c42b6e Cosmetic changes 2018-08-16 19:04:23 +02:00
f4exb c7e7bf3480 PlutoSDR support restored again fixing Rs and Tx living together 2017-10-29 14:51:56 +01:00
f4exb cec24b8078 PlutoSDR input: cosmetic changes 2017-09-10 17:44:34 +02:00
f4exb 251fcd202d PlutoSDR input: restored soft decimation 2017-09-10 17:07:38 +02:00
f4exb ccb1563299 PlutoSDR input: corrected I/Q loop processing as interleaved and not I/Q sample block 2017-09-10 16:58:48 +02:00
f4exb 6a229bef10 PlutoSDR input: restored soft decimation 2017-09-10 12:27:28 +02:00
f4exb 04d06085fe PlutoSDR: debug (3) 2017-09-10 10:16:23 +02:00
f4exb f38e7704ad PlutoSDR input: debug (2) 2017-09-09 10:44:42 +02:00
f4exb 3c20b02602 PlutoSDR input: simplify convert method parameters 2017-09-08 08:45:24 +02:00
f4exb 450a44036e PlutoSDR input: fill sample FIFO only when convert buffer is full 2017-09-08 08:41:57 +02:00
f4exb e1c3a66983 PlutoSDR input: added thread class 2017-09-06 06:15:38 +02:00