AnsweredAssumed Answered

Possible ways to terminate iio_buffer_refill early?

Question asked by njp on Feb 5, 2015
Latest reply on Feb 6, 2015 by rgetz



Is it possible in anyway to terminate iio_buffer_refill() before it finishes filling the requested buffer? Like could it respond to pthread_kill/cancel?


For example (using arbitrary and possibly unrealistic numbers), if I had requested a 10 second IQ collect with iio_buffer_refill as a thread, but decided 1 second into it that I wanted to discard that data and tune to a new LO and do a new collect, is it possible to kill the iio_buffer_refill thread or do I have to wait it out?