Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for osyield_no_g (0.52 sec)

  1. src/runtime/proc.go

    //
    //go:nosplit
    func lockextra(nilokay bool) *m {
    	const locked = 1
    
    	incr := false
    	for {
    		old := extraM.Load()
    		if old == locked {
    			osyield_no_g()
    			continue
    		}
    		if old == 0 && !nilokay {
    			if !incr {
    				// Add 1 to the number of threads
    				// waiting for an M.
    				// This is cleared by newextram.
    				extraMWaiters.Add(1)
    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