AnsweredAssumed Answered

Safe to assume that Libiio calls are thread safe?

Question asked by ttyler777 on Apr 25, 2018
Latest reply on Apr 25, 2018 by ttyler777

Hello all,


I had a quick question.  For both Network and Local Contexts, is it safe to assume that all Libiio calls are thread safe?  If not, are some calls thread safe?  For instance:


Thread 1: Created a Libiio Buffer and is continually calling iio_buffer_refill() and then processing the data.

Thread 2: Is occasionally calling iio_channel_attr_write() or iio_channel_attr_read().


I feel like these threads shouldn't interfere with each other, but I wanted to be sure.