摘要:
mutex 流程 type Mutex struct { state int32 sema uint32 } 等效于 type Mutex struct { locked uint woken uint starving uint waiterCount uint sema uint32 } Loc 阅读全文
摘要:
WaitGroup流程 type WaitGroup struct { noCopy noCopy // 64-bit value: high 32 bits are counter, low 32 bits are waiter count. // 64-bit atomic operations 阅读全文