Skip to content

Commit ca24d02

Browse files
committed
update netpoll
1 parent 50863f6 commit ca24d02

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

netpoll.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ func installTestHooks() {
5252
// io notification or timeout/close changes the state to READY or nil respectively
5353
// and unparks the goroutine.
5454
// nil - nothing of the above.
55+
56+
// wg 和 rg 这两个字段用法实在有点特殊
57+
// 既会被用来当作状态值,又会被用来存储被 park 的 g 列表
58+
// 如果没有 g 在等,也没事件,那就是 0,其实就是 0
59+
// 官方这里非得说是 nil
60+
5561
const (
5662
pdReady uintptr = 1
5763
pdWait uintptr = 2

0 commit comments

Comments
 (0)