golang之channel源码解析_channel原码-CSDN博客

网站介绍:文章浏览阅读344次。type hchan struct { dataqsiz uint //缓冲槽大小 buf unsafe.Pointer//缓冲槽指针 sendx uint // 发送索引 recvx uint // 接受索引 recvq waitq // 接收队列 sendq waitq // 发送队列}异步和同步的区别,在于是............_channel原码