From c2ec772dac7cf2a488af539613bf31ed15dfbaa5 Mon Sep 17 00:00:00 2001 From: Botahamec Date: Thu, 27 Oct 2022 17:35:32 -0400 Subject: Created a dumb `Lock` type --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 0922f35..53fc59a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,6 +3,8 @@ use std::fmt::{self, Debug}; use parking_lot::Mutex; +mod lock; + thread_local! { // safety: this is the only place where a ThreadLock is created pub static KEY: Mutex> = Mutex::new(Some(unsafe { ThreadKey::new() })); -- cgit v1.2.3