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

push_mut and pop_mut for queues #1179

Open
orlp opened this issue Feb 13, 2025 · 1 comment
Open

push_mut and pop_mut for queues #1179

orlp opened this issue Feb 13, 2025 · 1 comment

Comments

@orlp
Copy link

orlp commented Feb 13, 2025

It would be nice if you could avoid the extra cost of atomic operations + the extra checks done for the lock-free algorithms when you have a mutable reference to the queue (for example during single-threaded initialization of a queue which is then passed off to workers).

@taiki-e
Copy link
Member

taiki-e commented Feb 16, 2025

Seems reasonable to me. I would accept a PR to add this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants