Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for lock_held_ (0.1 sec)

  1. src/runtime/proc.go

    	mp := acquirem()
    	if !lockheld {
    		lock(&sched.lock)
    	}
    	if pp == nil {
    		if spinning {
    			// TODO(prattmic): All remaining calls to this function
    			// with _p_ == nil could be cleaned up to find a P
    			// before calling startm.
    			throw("startm: P required for spinning=true")
    		}
    		pp, _ = pidleget(0)
    		if pp == nil {
    			if !lockheld {
    				unlock(&sched.lock)
    			}
    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