We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50863f6 commit ca24d02Copy full SHA for ca24d02
netpoll.md
@@ -52,6 +52,12 @@ func installTestHooks() {
52
// io notification or timeout/close changes the state to READY or nil respectively
53
// and unparks the goroutine.
54
// nil - nothing of the above.
55
+
56
+// wg 和 rg 这两个字段用法实在有点特殊
57
+// 既会被用来当作状态值,又会被用来存储被 park 的 g 列表
58
+// 如果没有 g 在等,也没事件,那就是 0,其实就是 0
59
+// 官方这里非得说是 nil
60
61
const (
62
pdReady uintptr = 1
63
pdWait uintptr = 2
0 commit comments