According to the documentation of RwLock (emphasis mine):
An RwLock is poisoned whenever a writer panics while holding an exclusive lock.
This makes sense, since there is no possibility of putting the inner value in an invalid state when you cannot modify the inner value.
The Poisonable type currently included in HappyLock poisons for both exclusive and shared locks. This should be fixed.
According to the documentation of
RwLock(emphasis mine):This makes sense, since there is no possibility of putting the inner value in an invalid state when you cannot modify the inner value.
The
Poisonabletype currently included in HappyLock poisons for both exclusive and shared locks. This should be fixed.