-
Notifications
You must be signed in to change notification settings - Fork 88
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
Use PAUSE instruction? #16
Comments
I am unsure what this instruction does. Can you provide a resource which has some details? |
(Note that I'm not at all an expert. Just trying to learn something.) In Linux, the This quote is from the Intel x86 developer's manual:
|
Hmm seems like a good idea then. If you or anyone else would submit a pull request I would be happy to merge it. |
Thanks! 👍 |
I'm thinking of putting this functionality in the std lib itself rust-lang/rust#40537 |
In
obtain_lock
, would it make sense (on x86) to use the PAUSE instruction inside the loop? Looking at the Intel manuals, it seems to be designed for this kind of situation.The text was updated successfully, but these errors were encountered: