diff options
| author | Botahamec <botahamec@outlook.com> | 2022-10-27 17:35:32 -0400 |
|---|---|---|
| committer | Botahamec <botahamec@outlook.com> | 2022-10-27 17:35:32 -0400 |
| commit | c2ec772dac7cf2a488af539613bf31ed15dfbaa5 (patch) | |
| tree | d318df64695bca13358699fa6d5c5a811ff86e8d /src/lib.rs | |
| parent | 9a014a0afa5dd1536ed1cc5f3cdb71304385b471 (diff) | |
Created a dumb `Lock` type
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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<Option<ThreadKey>> = Mutex::new(Some(unsafe { ThreadKey::new() })); |
