Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for missLocked (0.09 sec)

  1. src/sync/map.go

    		if !ok && read.amended {
    			e, ok = m.dirty[key]
    			// Regardless of whether the entry was present, record a miss: this key
    			// will take the slow path until the dirty map is promoted to the read
    			// map.
    			m.missLocked()
    		}
    		m.mu.Unlock()
    	}
    	if !ok {
    		return nil, false
    	}
    	return e.load()
    }
    
    func (e *entry) load() (value any, ok bool) {
    	p := e.p.Load()
    	if p == nil || p == expunged {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 15.6K bytes
    - Viewed (0)
Back to top