Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: is LIFO possible? #5

Closed
emmenlau opened this issue Feb 2, 2018 · 2 comments
Closed

Feature request: is LIFO possible? #5

emmenlau opened this issue Feb 2, 2018 · 2 comments

Comments

@emmenlau
Copy link

emmenlau commented Feb 2, 2018

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?

@rigtorp
Copy link
Owner

rigtorp commented Feb 2, 2018 via email

@emmenlau
Copy link
Author

emmenlau commented Feb 4, 2018

Could you help to implement this? Your experience in this topic would be great.

@rigtorp rigtorp closed this as completed Sep 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants