Skip to content

Commit 1f3a732

Browse files
committed
chore: add comments
1 parent d0b7168 commit 1f3a732

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

connstate/poll_linux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ type epoller struct {
3232
func (p *epoller) wait() error {
3333
events := make([]syscall.EpollEvent, 1024)
3434
for {
35+
// epoll wait is a blocking syscall, so we need to call entersyscallblock to handoff P,
36+
// and let the P run other goroutines.
3537
n, err := isyscall.EpollWait(p.epfd, events, -1)
3638
if err != nil && err != syscall.EINTR {
3739
return err

0 commit comments

Comments
 (0)