diff options
Diffstat (limited to 'src/poisonable/flag.rs')
| -rw-r--r-- | src/poisonable/flag.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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"))] |
