摘要: chan 1.chan数据结构 src/runtime/chan.go:hchan定义了channel的数据结构: type hchan struct { qcount uint // 当前队列中剩余元素个数 dataqsiz uint // 环形队列长度,即可以存放的元素个数 buf unsafe 阅读全文
posted @ 2023-11-29 17:53 王鹏鑫 阅读(220) 评论(0) 推荐(0)