diff options
| author | Mica White <botahamec@outlook.com> | 2024-03-13 22:44:46 -0400 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2024-03-13 22:44:46 -0400 |
| commit | 7bd236853ef5ae705328c8fdc492cf60fc6887c1 (patch) | |
| tree | ec4e9dced562fdae618b98ac704074c0ddc9cc41 /src/rwlock/write_lock.rs | |
| parent | 7c6f49b6570669098938dc332a4f3e85dd3d217d (diff) | |
Lockable overhaul
Diffstat (limited to 'src/rwlock/write_lock.rs')
| -rw-r--r-- | src/rwlock/write_lock.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/rwlock/write_lock.rs b/src/rwlock/write_lock.rs index d7333ae..c6b4c24 100644 --- a/src/rwlock/write_lock.rs +++ b/src/rwlock/write_lock.rs @@ -67,12 +67,6 @@ impl<'a, T: ?Sized, R: RawRwLock> WriteLock<'a, T, R> { self.0.write(key) } - /// Creates an exclusive lock without a key. Locking this without exclusive - /// access to the key is undefined behavior. - pub(crate) unsafe fn lock_no_key(&self) -> RwLockWriteRef<'_, T, R> { - self.0.write_no_key() - } - /// Attempts to lock the underlying [`RwLock`] with exclusive write access. pub fn try_lock<'s, 'key: 's, Key: Keyable + 'key>( &'s self, |
