Please check my design is reasonable? #6974
Replies: 1 comment
-
I don't know how Rust allows read locks when write locks are occupied, because some requirements allow dirty data to be read in phantom |
Beta Was this translation helpful? Give feedback.
0 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.
-
This is my design demon , any one can see my design is reasonable???
Because , I will encounter the hashmap change in any threads. But some threads only need read , the object pointed to by hashmap may be mutable or immutable, so hashmap objects are added with read-write locks. I hope to obtain hashmaps with a shorter lifecycle, while the lifecycle of the objects pointed to by hashmaps may be longer.
Beta Was this translation helpful? Give feedback.
All reactions