Designing single producer and multiple consumer( Threading)

asked 2018-04-16 01:25:47 -0600

Kira gravatar image

Hello All,

I am using opencv + qt to for my camera application. I have to perform two task

  1. Capturing the frame and displaying it on GUI
  2. Communicating with the serial port and storing the image.

I have seen the examples on forum which describe architecture for single producer queue which query the frame and consumer which consumes the frame.

Please let me know how can the single producer and multiple consumer can be implemented and if same code available would be great.

Thanks and Regards, Kira

edit retag flag offensive close merge delete