readerwriterqueue
readerwriterqueue copied to clipboard
Question : for this scene, a single-producer, multi-consumer, and these consumer thread execute alternately. which lock-free queue should I use?
Hello, I have this scene: a single-producer, multi-consumer, and these consumer thread execute alternately. That is to say, only one consumer thread is using the queue at any time, which lock-free queue should I use?
A single-producer, single-consumer lock-free queue
or a single-producer, multi-consumer lock-free queue