summaryrefslogtreecommitdiff
path: root/src/collection/utils.rs
diff options
context:
space:
mode:
authorBotahamec <botahamec@outlook.com>2025-02-07 17:48:26 -0500
committerBotahamec <botahamec@outlook.com>2025-02-07 17:48:26 -0500
commit4a5ec04a29cba07c5960792528bd66b0f99ee3ee (patch)
tree6f4764d08177b6fba5c6d0a2fc1b61cec7c72fb9 /src/collection/utils.rs
parentf6b38f7425a3183214dae79445446b042154688f (diff)
Fix lifetimes for poison guards
Diffstat (limited to 'src/collection/utils.rs')
-rw-r--r--src/collection/utils.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/collection/utils.rs b/src/collection/utils.rs
index 7f29037..d6d50f4 100644
--- a/src/collection/utils.rs
+++ b/src/collection/utils.rs
@@ -109,7 +109,7 @@ pub unsafe fn attempt_to_recover_reads_from_panic(locked: &[&dyn RawLock]) {
handle_unwind(
|| {
// safety: the caller assumes these are already locked
- locked.iter().for_each(|lock| lock.raw_unlock());
+ locked.iter().for_each(|lock| lock.raw_unlock_read());
},
// if we get another panic in here, we'll just have to poison what remains
|| locked.iter().for_each(|l| l.poison()),