Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for checkWorldStopped (0.14 sec)

  1. src/runtime/lockrank_on.go

    //go:nosplit
    func assertWorldStopped() {
    	if checkWorldStopped() {
    		return
    	}
    
    	throw("world not stopped")
    }
    
    // assertWorldStoppedOrLockHeld throws if the world is not stopped and the
    // passed lock is not held.
    //
    // nosplit to ensure it can be called in as many contexts as possible.
    //
    //go:nosplit
    func assertWorldStoppedOrLockHeld(l *mutex) {
    	if checkWorldStopped() {
    		return
    	}
    
    	gp := getg()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:29:04 UTC 2024
    - 10.6K bytes
    - Viewed (0)
Back to top