diff options
| author | Botahamec <botahamec@outlook.com> | 2022-11-18 23:08:25 -0500 |
|---|---|---|
| committer | Botahamec <botahamec@outlook.com> | 2022-11-18 23:08:25 -0500 |
| commit | d96edbd12da892a101362ae89fb3c10917361fe6 (patch) | |
| tree | 7dd5878edd4f706baa81606ec4bf19bda353ec90 /src/mutex.rs | |
| parent | 838d37e84340259d8ce1313a6985e688c77fb770 (diff) | |
Reorganized modules
Diffstat (limited to 'src/mutex.rs')
| -rw-r--r-- | src/mutex.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mutex.rs b/src/mutex.rs index 9231f65..aa7ec72 100644 --- a/src/mutex.rs +++ b/src/mutex.rs @@ -4,6 +4,9 @@ use std::ops::{Deref, DerefMut}; use crate::lock::Lock; use crate::ThreadKey; +/// A spinning mutex +pub type SpinLock<T> = Mutex<RawSpin, T>; + /// Implements a raw C-like mutex. /// /// # Safety |
