From b2281e6aec631dc7c6d69edef9268ce7e00ed1dc Mon Sep 17 00:00:00 2001 From: Botahamec Date: Sat, 21 Dec 2024 11:27:09 -0500 Subject: Implement lock death, but without any usages --- src/poisonable/flag.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/poisonable/flag.rs') diff --git a/src/poisonable/flag.rs b/src/poisonable/flag.rs index be38a38..a692685 100644 --- a/src/poisonable/flag.rs +++ b/src/poisonable/flag.rs @@ -16,6 +16,10 @@ impl PoisonFlag { pub fn clear_poison(&self) { self.0.store(false, Relaxed) } + + pub fn poison(&self) { + self.0.store(true, Relaxed); + } } #[cfg(not(panic = "unwind"))] -- cgit v1.2.3