Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/runtime/proc.go

    // goroutines.
    //
    // Returns the STW context. When starting the world, this context must be
    // passed to startTheWorld.
    func stopTheWorld(reason stwReason) worldStop {
    	semacquire(&worldsema)
    	gp := getg()
    	gp.m.preemptoff = reason.String()
    	systemstack(func() {
    		// Mark the goroutine which called stopTheWorld preemptible so its
    		// stack may be scanned.
    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