Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for procresize (1.29 sec)

  1. src/runtime/proc.go

    //
    // Returns list of Ps with local work, they need to be scheduled by the caller.
    func procresize(nprocs int32) *p {
    	assertLockHeld(&sched.lock)
    	assertWorldStopped()
    
    	old := gomaxprocs
    	if old < 0 || nprocs <= 0 {
    		throw("procresize: invalid arg")
    	}
    	trace := traceAcquire()
    	if trace.ok() {
    		trace.Gomaxprocs(nprocs)
    		traceRelease(trace)
    	}
    
    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