Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for goroutineDeep (0.15 sec)

  1. src/runtime/pprof/pprof_test.go

    		mu.Lock()
    		mu.Lock()
    	}()
    	awaitBlockedGoroutine(t, "sync.Mutex.Lock", "blockMutexDeep", 1)
    	mu.Unlock()
    }
    
    // goroutineDeep blocks at stack depth n, including the caller until the test is
    // finished.
    func goroutineDeep(t *testing.T, n int) {
    	if n > 1 {
    		goroutineDeep(t, n-1)
    		return
    	}
    	wait := make(chan struct{}, 1)
    	t.Cleanup(func() {
    		wait <- struct{}{}
    	})
    	<-wait
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
Back to top