Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for schedEnableUser (0.15 sec)

  1. src/runtime/mgc.go

    	// In STW mode, disable scheduling of user Gs. This may also
    	// disable scheduling of this goroutine, so it may block as
    	// soon as we start the world again.
    	if mode != gcBackgroundMode {
    		schedEnableUser(false)
    	}
    
    	// Enter concurrent mark phase and enable
    	// write barriers.
    	//
    	// Because the world is stopped, all Ps will
    	// observe that write barriers are enabled by
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  2. src/runtime/runtime2.go

    	// Global runnable queue.
    	runq     gQueue
    	runqsize int32
    
    	// disable controls selective disabling of the scheduler.
    	//
    	// Use schedEnableUser to control this.
    	//
    	// disable is protected by sched.lock.
    	disable struct {
    		// user disables scheduling of user goroutines.
    		user     bool
    		runnable gQueue // pending runnable Gs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
  3. src/runtime/proc.go

    			print("nil")
    		}
    		print("\n")
    	})
    	unlock(&sched.lock)
    }
    
    // schedEnableUser enables or disables the scheduling of user
    // goroutines.
    //
    // This does not stop already running user goroutines, so the caller
    // should first stop the world when disabling user goroutines.
    func schedEnableUser(enable bool) {
    	lock(&sched.lock)
    	if sched.disable.user == !enable {
    		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