Viewing data in a circular buffer in real-time
问题 I have an incoming stream of messages, and want a window that allows the user to scroll through the messages. This is my current thinking: Incoming messages go into single producer single consumer queue A thread reads them out and places them into a circular buffer with a sequential id This way I could have multiple incoming streams safely placed in the circular buffer and it decouples the input Mutex to coordinate circular buffer access between the UI and the thread Two notifications from