Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for osRelax (0.17 sec)

  1. src/runtime/nonwindows_stub.go

    // without performing an osRelax. Since osRelax may reduce the
    // precision of timers, this should be enough larger than the relaxed
    // timer precision to keep the timer error acceptable.
    const osRelaxMinNS = 0
    
    var haveHighResSleep = true
    
    // osRelax is called by the scheduler when transitioning to and from
    // all Ps being idle.
    func osRelax(relax bool) {}
    
    // enableWER is called by setTraceback("wer").
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 03:12:13 UTC 2024
    - 962 bytes
    - Viewed (0)
  2. src/runtime/os_windows.go

    // versions osRelax is noop.
    // For Windows versions without high resolution timer, osRelax
    // adjusts the system-wide timer resolution. Go needs a
    // high resolution timer while running and there's little extra cost
    // if we're already using the CPU, but if all Ps are idle there's no
    // need to consume extra power to drive the high-res timer.
    func osRelax(relax bool) uint32 {
    	if haveHighResTimer {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  3. src/runtime/proc.go

    					if next-now < sleep {
    						sleep = next - now
    					}
    					shouldRelax := sleep >= osRelaxMinNS
    					if shouldRelax {
    						osRelax(true)
    					}
    					syscallWake = notetsleep(&sched.sysmonnote, sleep)
    					if shouldRelax {
    						osRelax(false)
    					}
    					lock(&sched.lock)
    					sched.sysmonwait.Store(false)
    					noteclear(&sched.sysmonnote)
    				}
    				if syscallWake {
    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