-
Couldn't load subscription status.
- Fork 13.9k
Rwlock try upgrade #138560
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
Rwlock try upgrade #138560
Conversation
This comment has been minimized.
This comment has been minimized.
98bd279 to
a7ddc7b
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
a23b468 to
6673596
Compare
|
Not sure how to proceed in |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
Tracking issue: #138559
This PR adds a
try_upgrademethod on RwLockReadGuard that transforms it into a RwLockWriteGuard if it is immediately possible (ie if there are no read guards except for this one at this time)