Function rs2_create_frame_queue

Function Documentation

rs2_frame_queue *rs2_create_frame_queue(int capacity, rs2_error **error)

create frame queue. frame queues are the simplest x-platform synchronization primitive provided by librealsense to help developers who are not using async APIs

Parameters:
  • capacity[in] max number of frames to allow to be stored in the queue before older frames will start to get dropped

  • error[out] if non-null, receives any error that occurs during this call, otherwise, errors are ignored

Returns:

handle to the frame queue, must be released using rs2_delete_frame_queue