摘要: mutex 流程 type Mutex struct { state int32 sema uint32 } 等效于 type Mutex struct { locked uint woken uint starving uint waiterCount uint sema uint32 } Loc 阅读全文
posted @ 2024-06-24 09:39 Aloe_n 阅读(1) 评论(0) 推荐(0) 编辑
摘要: WaitGroup流程 type WaitGroup struct { noCopy noCopy // 64-bit value: high 32 bits are counter, low 32 bits are waiter count. // 64-bit atomic operations 阅读全文
posted @ 2024-06-24 09:37 Aloe_n 阅读(1) 评论(0) 推荐(0) 编辑