diff options
Diffstat (limited to 'examples/basic.rs')
| -rw-r--r-- | examples/basic.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/basic.rs b/examples/basic.rs index 87e7a60..4ff85f8 100644 --- a/examples/basic.rs +++ b/examples/basic.rs @@ -1,11 +1,10 @@ use std::thread; -use happylock::mutex::{Mutex, SpinLock}; -use happylock::ThreadKey; +use happylock::{Mutex, ThreadKey}; const N: usize = 10; -static DATA: SpinLock<i32> = Mutex::new(0); +static DATA: Mutex<i32> = Mutex::new(0); fn main() { for _ in 0..N { |
