rustcc / Rust_Atomics_and_Locks

Rust Atomics and Locks (中文翻译)
https://rustcc.github.io/Rust_Atomics_and_Locks/
MIT License
227 stars 29 forks source link

第一章 锁:互斥锁与读写锁 #100

Closed A-linna closed 1 month ago

A-linna commented 1 month ago

image

这里 锁定一个未解锁的mutex,未解锁 意味着已经上锁了,被其他线上锁定了 还怎么锁定成功呢 原文是 When a thread locks an unlocked mutex 翻译成 锁定一个 未上锁的mutex 是不是合适些

fwqaaq commented 1 month ago

@A-linna 你是对的,这里应该是解锁状态,这段还可以优化