bladeRF/host/libraries
Jon Szymaniak ba561a4aa1 libbladeRF: Fixed race condition in TX buffer submission
It is possible that the buffer completion callback occurs before
advance_tx_buffer() acts upon a successful return code from
async_submit_stream_buffer().

We must ensure the buffer is in the IN_FLIGHT state before
we temporarily drop the buffer lock (so a stream lock can be acquired),
or else the assertion at sync_worker.c:150 may not be upheld.

Therefore, we default the buffer state to being IN_FLIGHT before
dropping the lock, and revert it to FULL if the buffer submission
fails (due to an error or a need to block in a non-blocking call).

This fixes #458. The associated defect was introduced in:
    6b197881 libbladeRF: Utilize all available TX buffers
2016-02-27 11:47:14 -05:00
..
libbladeRF libbladeRF: Fixed race condition in TX buffer submission 2016-02-27 11:47:14 -05:00
libbladeRF_bindings/matlab matlab: Fixed loopback name typo in bladeRF_Simulink.m 2016-01-08 17:56:16 -05:00
libbladeRF_test libbladeRF: Added LIBBLADERF_API_VERSION 2015-12-30 22:31:16 -05:00
CMakeLists.txt libbladeRF: Moved tests out of libbladeRF/ directory 2014-11-14 15:19:18 -05:00