Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 11 of 11 for myuid (0.04 sec)

  1. src/runtime/mgcpacer.go

    	if gomaxprocs <= 1 {
    		return
    	}
    	gp := getg()
    	if gp == nil || gp.m == nil || gp.m.p == 0 {
    		return
    	}
    	myID := gp.m.p.ptr().id
    	for tries := 0; tries < 5; tries++ {
    		id := int32(cheaprandn(uint32(gomaxprocs - 1)))
    		if id >= myID {
    			id++
    		}
    		p := allp[id]
    		if p.status != _Prunning {
    			continue
    		}
    		if preemptone(p) {
    			return
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 55.4K bytes
    - Viewed (0)
Back to top