Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for netpollBreak (0.17 sec)

  1. src/runtime/proc_test.go

    	// scheduler netpoll.
    loop:
    	for {
    		runtime.Usleep(100)
    		runtime.NetpollBreak()
    		runtime.NetpollBreak()
    		select {
    		case <-c:
    			break loop
    		default:
    		}
    	}
    	if dur := time.Since(start); dur > 5*time.Second {
    		t.Errorf("netpollBreak did not interrupt netpoll: slept for: %v", dur)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.8K bytes
    - Viewed (0)
  2. src/runtime/netpoll_wasip1.go

    		if pds[i].fd == fd {
    			netpolldisarm(pds[i], 'r'+'w')
    			pds[i] = pds[len(pds)-1]
    			pds = pds[:len(pds)-1]
    			break
    		}
    	}
    	unlock(&mtx)
    	return 0
    }
    
    func netpollBreak() {}
    
    func netpoll(delay int64) (gList, int32) {
    	lock(&mtx)
    
    	// If delay >= 0, we include a subscription of type Clock that we use as
    	// a timeout. If delay < 0, we omit the subscription and allow poll_oneoff
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. src/runtime/netpoll.go

    //     Return a list of goroutines built by calling netpollready,
    //     and a delta to add to netpollWaiters when all goroutines are ready.
    //     This will never return an empty list with a non-zero delta.
    //
    // func netpollBreak()
    //     Wake up the network poller, assumed to be blocked in netpoll.
    //
    // func netpollIsPollDescriptor(fd uintptr) bool
    //     Reports whether fd is a file descriptor used by the poller.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  4. src/runtime/export_test.go

    var ReadRandomFailed = &readRandomFailed
    
    var Fastlog2 = fastlog2
    
    var Atoi = atoi
    var Atoi32 = atoi32
    var ParseByteCount = parseByteCount
    
    var Nanotime = nanotime
    var NetpollBreak = netpollBreak
    var Usleep = usleep
    
    var PhysPageSize = physPageSize
    var PhysHugePageSize = physHugePageSize
    
    var NetpollGenericInit = netpollGenericInit
    
    var Memmove = memmove
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  5. src/runtime/proc.go

    				mp.becomeSpinning()
    			}
    			goto top
    		}
    	} else if pollUntil != 0 && netpollinited() {
    		pollerPollUntil := sched.pollUntil.Load()
    		if pollerPollUntil == 0 || pollerPollUntil > pollUntil {
    			netpollBreak()
    		}
    	}
    	stopm()
    	goto top
    }
    
    // pollWork reports whether there is non-background work this P could
    // be doing. This is a fairly lightweight check to be used for
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
Back to top