Function libiio_sys::iio_buffer_set_blocking_mode
source · [−]pub unsafe extern "C" fn iio_buffer_set_blocking_mode(
buf: *mut iio_buffer,
blocking: bool
) -> c_int
Expand description
@brief Make iio_buffer_refill() and iio_buffer_push() blocking or not
After this function has been called with blocking == false, iio_buffer_refill() and iio_buffer_push() will return -EAGAIN if no data is ready. A device is blocking by default. @param buf A pointer to an iio_buffer structure @param blocking true if the buffer API should be blocking, else false @return On success, 0 @return On error, a negative errno code is returned