Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for rwmutex (0.09 sec)

  1. src/net/http/h2_bundle.go

    	_ http2clientConnPoolIdleCloser = http2noDialClientConnPool{}
    )
    
    // TODO: use singleflight for dialing and addConnCalls?
    type http2clientConnPool struct {
    	t *http2Transport
    
    	mu sync.Mutex // TODO: maybe switch to RWMutex
    	// TODO: add support for sharing conns based on cert names
    	// (e.g. share conn for googleapis.com and appspot.com)
    	conns        map[string][]*http2ClientConn // key is host:port
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
  2. doc/go_spec.html

    </p>
    
    <pre>
    // A Mutex is a data type with two methods, Lock and Unlock.
    type Mutex struct         { /* Mutex fields */ }
    func (m *Mutex) Lock()    { /* Lock implementation */ }
    func (m *Mutex) Unlock()  { /* Unlock implementation */ }
    
    // NewMutex has the same composition as Mutex but its method set is empty.
    type NewMutex Mutex
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (1)
Back to top