picos icon indicating copy to clipboard operation
picos copied to clipboard

Try to avoid contention on back of the queue

Open polytypic opened this issue 9 months ago • 0 comments

When moving elements from the tail of the queue to the head, if there is more than one element on the tail, then leave the topmost (last pushed) element on the tail and don't update the tail pointer. This reduces contention between producers and the consumer.

polytypic avatar May 02 '24 15:05 polytypic