[][src]Function realsense_sys::rs2_pipeline_wait_for_frames

pub unsafe extern "C" fn rs2_pipeline_wait_for_frames(
    pipe: *mut rs2_pipeline,
    timeout_ms: c_uint,
    error: *mut *mut rs2_error
) -> *mut rs2_frame

Wait until a new set of frames becomes available. The frames set includes time-synchronized frames of each enabled stream in the pipeline. The method blocks the calling thread, and fetches the latest unread frames set. Device frames, which were produced while the function wasn't called, are dropped. To avoid frame drops, this method should be called as fast as the device frame rate. The application can maintain the frames handles to defer processing. However, if the application maintains too long history, the device may lack memory resources to produce new frames, and the following call to this method shall fail to retrieve new frames, until resources are retained. \param[in] pipe the pipeline \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 Set of coherent frames