SPMC_Queue icon indicating copy to clipboard operation
SPMC_Queue copied to clipboard

what is the reason to use write_idx and an additional idx in `Block`?

Open samplling opened this issue 3 years ago • 2 comments

seems to me either one works

samplling avatar Oct 08 '22 10:10 samplling

I think this struct is copy from MPMC queue directly. As we know that the MPMC quque need a token semnatics field to making producer and consumer blocking on the queue is full

g302ge avatar Apr 24 '23 13:04 g302ge

And there is an assumption, size_t is alwasys enough in practical situatiion, so the WriteIndex should always grater than ReadIndex

g302ge avatar Apr 25 '23 16:04 g302ge