[][src]Function realsense_sys::rs2_wait_for_frame

pub unsafe extern "C" fn rs2_wait_for_frame(
    queue: *mut rs2_frame_queue,
    timeout_ms: c_uint,
    error: *mut *mut rs2_error
) -> *mut rs2_frame

wait until new frame becomes available in the queue and dequeue it \param[in] queue the frame queue data structure \param[in] timeout_ms max time in milliseconds to wait until an exception will be thrown \param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored \return frame handle to be released using rs2_release_frame