Update src/advance/concurrency-with-threads/sync1.md

pull/1219/head
Sunface 1 year ago committed by GitHub
parent 406df0a46e
commit 2331fe1f68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -320,7 +320,7 @@ fn main() {
// 去锁MUTEX2 // 去锁MUTEX2
let guard = MUTEX2.try_lock(); let guard = MUTEX2.try_lock();
println!("线程 {} 获取MUTEX2锁的结果: {:?}", i_thread, guard); println!("线程 {} 获取 MUTEX2 锁的结果: {:?}", i_thread, guard);
// 线程2 // 线程2
} else { } else {
// 锁住MUTEX2 // 锁住MUTEX2

Loading…
Cancel
Save