Skip to content

Commit

Permalink
opt v8
Browse files Browse the repository at this point in the history
  • Loading branch information
joway committed Nov 29, 2021
1 parent c6d966f commit 4604488
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions poll_default_linux.go
Expand Up @@ -106,13 +106,8 @@ func (p *defaultPoll) Wait() (err error) {
p.Reset(128, barriercap)
var n, miss, msec int
for {
if miss == 0 {
msec = 0
} else if miss > 0 && miss <= 5 {
msec = 0
if miss > 0 {
runtime.Gosched()
} else {
msec = -1
}

n, err = p.Polling(msec)
Expand Down

0 comments on commit 4604488

Please sign in to comment.