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

All lock-free queues may allocate a padding dead value at the end of a page. This may be not necessary for single-producer queues #6

Open
giucamp opened this issue Nov 4, 2017 · 0 comments

Comments

@giucamp
Copy link
Owner

giucamp commented Nov 4, 2017

This padding in general is necessary to force the lase value to appear always at the same offset from the beginning of the page, so that all threads can agree on where the CAS game should be played. For single producer queues this is not necessary, so the page-switch may be simplified.

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

No branches or pull requests

1 participant