readerwriterqueue icon indicating copy to clipboard operation
readerwriterqueue copied to clipboard

[Question] Does this follow strict order?

Open cysin opened this issue 1 year ago • 1 comments

Does this strictly follow a first-in, first-out (FIFO) order for the queue?

cysin avatar May 31 '24 01:05 cysin

Yes

cameron314 avatar May 31 '24 01:05 cameron314

@cameron314 If only one producer produces data on different thread as described by https://github.com/cameron314/concurrentqueue/issues/316 , will readerwriterqueue follow the strict order?

Gabriel39 avatar Dec 20 '24 09:12 Gabriel39

ReaderWriterQueue and ConcurrentQueue have completely different implementations. ReaderWriterQueue is always FIFO. You can only write to it from a single producer.

cameron314 avatar Dec 20 '24 11:12 cameron314