You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a very nice MPMC queue! Is it possible to add LIFO functionality? It looks as if pop() could be modified to use head_.fetch_sub(1) but I am uncertain if this breaks something?
The text was updated successfully, but these errors were encountered:
Someone else asked about this recently.
I believe it's possible, but needs some changes that would reduce
throughput for FIFO case. So would be best to create separate class for
this.
On Fri, Feb 2, 2018, 10:01 Mario Emmenlauer ***@***.***> wrote:
This is a very nice MPMC queue! Is it possible to add LIFO functionality?
It looks as if pop() could be modified to use head_.fetch_sub(1) but I am
uncertain if this breaks something?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#5>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAK3a0xJITyhRDUFeZNfw3QZ_0eWmtIUks5tQyUfgaJpZM4R3UTy>
.
This is a very nice MPMC queue! Is it possible to add LIFO functionality? It looks as if
pop()
could be modified to usehead_.fetch_sub(1)
but I am uncertain if this breaks something?The text was updated successfully, but these errors were encountered: