diff options
Diffstat (limited to 'examples/double_mutex.rs')
| -rw-r--r-- | examples/double_mutex.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/double_mutex.rs b/examples/double_mutex.rs index 18460e4..1469f45 100644 --- a/examples/double_mutex.rs +++ b/examples/double_mutex.rs @@ -1,12 +1,11 @@ use std::thread; -use happylock::mutex::{Mutex, SpinLock}; -use happylock::{LockGuard, ThreadKey}; +use happylock::{LockGuard, Mutex, ThreadKey}; const N: usize = 10; -static DATA_1: SpinLock<i32> = Mutex::new(0); -static DATA_2: SpinLock<String> = Mutex::new(String::new()); +static DATA_1: Mutex<i32> = Mutex::new(0); +static DATA_2: Mutex<String> = Mutex::new(String::new()); fn main() { for _ in 0..N { |
