summaryrefslogtreecommitdiff
path: root/src/lockable.rs
diff options
context:
space:
mode:
authorMica White <botahamec@gmail.com>2024-12-26 11:06:23 -0500
committerMica White <botahamec@gmail.com>2024-12-26 11:26:29 -0500
commit096afea6f13692fddbfad0b07e5377cb2e81dd58 (patch)
tree53c252e3277683e7e8686539fde83e6cc5e1762d /src/lockable.rs
parenta060123077b94f61e3d0802a6977ad547276fd1b (diff)
Rename kill to poison
Diffstat (limited to 'src/lockable.rs')
-rw-r--r--src/lockable.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lockable.rs b/src/lockable.rs
index 1154d16..d599820 100644
--- a/src/lockable.rs
+++ b/src/lockable.rs
@@ -17,7 +17,7 @@ use std::mem::MaybeUninit;
pub unsafe trait RawLock {
/// Causes all subsequent calls to the `lock` function on this lock to
/// panic. This does not affect anything currently holding the lock.
- fn kill(&self);
+ fn poison(&self);
/// Blocks until the lock is acquired
///