You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to call with_upgraded of RwLockUpgradableReadGuard twice in a single scope, but stuck on trying to aquire the lock on the second call. Example on rust playground
upgradable read lock rl can be access after with_upgraded was called, or can anyone confirm it is by design.
The text was updated successfully, but these errors were encountered:
ling7334
changed the title
Fail to upgrade a upgradable read lock twice in a block
Fail to upgrade a upgradable read lock twice in a scope
Jun 27, 2023
Enviroument
Problem
Try to call
with_upgraded
ofRwLockUpgradableReadGuard
twice in a single scope, but stuck on trying to aquire the lock on the second call. Example on rust playgroundHere is a minimal problem reproduce
but success to aquire lock seperately like below
Expectation
upgradable read lock
rl
can be access afterwith_upgraded
was called, or can anyone confirm it is by design.The text was updated successfully, but these errors were encountered: