Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestYieldLockedProgress (0.58 sec)

  1. src/runtime/proc_test.go

    		compl <- true
    	}()
    	go perpetuumMobile()
    	<-compl
    	<-compl
    	stop <- true
    	runtime.GOMAXPROCS(maxprocs)
    }
    
    func TestYieldProgress(t *testing.T) {
    	testYieldProgress(false)
    }
    
    func TestYieldLockedProgress(t *testing.T) {
    	testYieldProgress(true)
    }
    
    func testYieldProgress(locked bool) {
    	c := make(chan bool)
    	cack := make(chan bool)
    	go func() {
    		if locked {
    			runtime.LockOSThread()
    		}
    		for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.8K bytes
    - Viewed (0)
Back to top