channel底层实现
摘要:go:1.16 type hchan struct { qcount uint // chan里的元素数量 dataqsiz uint // chan底层循环数组长度 buf unsafe.Pointer // 指向底层循环数组指针,只针对有缓冲的channel elemsize uint16 //
阅读全文
posted @ 2021-08-31 17:35
posted @ 2021-08-31 17:35