Upgradeable RwLock
read locks?
#5718
Unanswered
Jules-Bertholet
asked this question in
Ideas
Replies: 1 comment 4 replies
-
I don't see how that could work. You can have multiple read guards, so trying to upgrade two coexisting guards must necessarily fail. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
parking_lot
'sRwLock
has upgradeable read locks, that can be upgraded to a write lock without letting other writers through in the meantime. Has any thought been given to supporting this in tokio'sRwLock
?Beta Was this translation helpful? Give feedback.
All reactions