Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for chanrecv2 (0.32 sec)

  1. src/runtime/pprof/pprof_test.go

    		prefix   []string
    	}{
    		{"heap", []string{"runtime/pprof.allocDeep"}},
    		{"block", []string{"runtime.chanrecv1", "runtime/pprof.blockChanDeep"}},
    		{"mutex", []string{"sync.(*Mutex).Unlock", "runtime/pprof.blockMutexDeep"}},
    		{"goroutine", []string{"runtime.gopark", "runtime.chanrecv", "runtime.chanrecv1", "runtime/pprof.goroutineDeep"}},
    	}
    
    	for _, test := range tests {
    		t.Run(test.profiler, func(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types/type.go

    	TRESULTS // multiple types; the result of calling a function or method, with a memory at the end.
    
    	NTYPE
    )
    
    // ChanDir is whether a channel can send, receive, or both.
    type ChanDir uint8
    
    func (c ChanDir) CanRecv() bool { return c&Crecv != 0 }
    func (c ChanDir) CanSend() bool { return c&Csend != 0 }
    
    const (
    	// types of channel
    	// must match ../../../../reflect/type.go:/ChanDir
    	Crecv ChanDir = 1 << 0
    	Csend ChanDir = 1 << 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
Back to top