我以为我了解Mutex的工作原理,但显然我不知道。 我首先尝试使用RWMutex写锁: type person struct { sync.RWMutex age int } func main() { a := person{age: 3} fmt.
確定! 回上一頁