Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 32 of 32 for counter1 (0.13 sec)

  1. src/net/http/transport_test.go

    	conn, err := d.dialer.DialContext(ctx, network, address)
    	if err != nil {
    		return nil, err
    	}
    
    	counted := new(countedConn)
    	counted.Conn = conn
    
    	d.mu.Lock()
    	defer d.mu.Unlock()
    	d.total++
    	d.live++
    
    	runtime.SetFinalizer(counted, d.decrement)
    	return counted, nil
    }
    
    func (d *countingDialer) decrement(*countedConn) {
    	d.mu.Lock()
    	defer d.mu.Unlock()
    	d.live--
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  2. src/reflect/all_test.go

    // one of these wrappers, the rewritten receiver is almost certainly a different type
    // than the original receiver. This is not a problem on the stack, where we use the
    // program counter to determine the type information and understand that
    // during (*Outer).M the receiver is an *Outer while during (*Inner).M the receiver in the same
    // memory word is now an *Inner. But in the statically typed argument frame created
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top