From 0435c4a84f320baa7e8296b2124ba4a7923d1a13 Mon Sep 17 00:00:00 2001 From: Botahamec Date: Thu, 27 Oct 2022 18:47:59 -0400 Subject: Unsafe `force_unlock` methods --- src/lock.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lock.rs') diff --git a/src/lock.rs b/src/lock.rs index 54a836d..08e21c4 100644 --- a/src/lock.rs +++ b/src/lock.rs @@ -57,7 +57,7 @@ impl Lock { /// This should only be called if the key to the lock has been "lost". That /// means the program no longer has a reference to the key, but it has not /// been dropped. - unsafe fn force_unlock(&self) { + pub unsafe fn force_unlock(&self) { self.is_locked.store(false, Ordering::Release); } -- cgit v1.2.3