analogdevicesinc / libiio

A cross platform library for interfacing with local and remote Linux IIO devices
http://analogdevicesinc.github.io/libiio/
GNU Lesser General Public License v2.1
471 stars 309 forks source link

iio_block_dequeue() is stuck forever if iio_buffer_cancel() is called #1171

Open catkira opened 1 month ago

catkira commented 1 month ago

I have set a timeout, so that iio_block_dequeue() in blocking mode returns after ie 20 ms when nothing was received. However when I call iio_buffer_cancel() before iio_block_dequeue() returned, it will never return and is just stuck.

catkira commented 1 month ago

This issue is probably related to https://github.com/analogdevicesinc/libiio/issues/1145, but lets fix https://github.com/analogdevicesinc/libiio/issues/1145 first.