Acquire a read lock, recovering from `RwLock` poisoning.
(
&self,
)
| 30 | |
| 31 | /// Acquire a read lock, recovering from `RwLock` poisoning. |
| 32 | pub(super) fn lock_read( |
| 33 | &self, |
| 34 | ) -> std::sync::RwLockReadGuard<'_, HashMap<String, Vec<RlsPolicy>>> { |
| 35 | self.policies.read().unwrap_or_else(|p| p.into_inner()) |
| 36 | } |
| 37 | |
| 38 | /// Acquire a write lock, recovering from `RwLock` poisoning. |
| 39 | pub(super) fn lock_write( |
no test coverage detected