-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add Futex Constants FUTEX_WAITERS, FUTEX_OWNER_DIED and FUTEX_TID_MASK to Linux #3787
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
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @JohnTitor (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you target main
? We will cherry-pick to stable.
@rustbot label +stable-nominated
@rustbot author |
☔ The latest upstream changes made this pull request unmergeable. Please resolve the merge conflicts. |
9535008
to
8c5c7ce
Compare
Thanks! |
@tgross35 Thank you for the review. The PR should now target |
(backport <rust-lang#3787>) (cherry picked from commit 8c5c7ce)
This PR adds three constants from
linux/futex.h
:FUTEX_WAITERS
,FUTEX_OWNER_DIED
andFUTEX_TID_MASK
. These are related to how the kernel indicates certain events to the holders of priority-inheritance futexes (see man 2 futex).I have intentionally typed those as
u32
, rather than::c_int
, as they are applied to the futex word (the target of the parameteruint32_t* uaddr
).