-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
[libc] add rwlock #94156
[libc] add rwlock #94156
Conversation
✅ With the latest revision this PR passed the C/C++ code formatter. |
8dea170
to
32190b0
Compare
74bdda6
to
88fcb9d
Compare
6d36751
to
00ad329
Compare
There seem to be some bugs. |
fixed. It took me a while to notice that misplaced brace .... |
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.
The tests look good overall, but make sure you're careful when using randomness in tests. A test failure isn't helpful if you can't figure out what caused it.
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.
I'm uncertain about memory ordering choices. Other parts look good to me.
efc2327
to
47a79ab
Compare
738c88e
to
dfc7ebd
Compare
This PR adds
pthread_rwlock_XXX
to thellvm-libc
.