Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for LoadOrStore (0.1 sec)

  1. src/reflect/type.go

    	}
    
    	// Look in known types.
    	s := "*" + t.String()
    	for _, tt := range typesByString(s) {
    		p := (*ptrType)(unsafe.Pointer(tt))
    		if p.Elem != &t.t {
    			continue
    		}
    		pi, _ := ptrMap.LoadOrStore(t, p)
    		return &pi.(*ptrType).Type
    	}
    
    	// Create a new ptrType starting with the description
    	// of an *unsafe.Pointer.
    	var iptr any = (*unsafe.Pointer)(nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/buildlist.go

    		})
    	}
    
    	var enqueue func(m module.Version, pruning modPruning)
    	enqueue = func(m module.Version, pruning modPruning) {
    		if m.Version == "none" {
    			return
    		}
    
    		if _, dup := loading.LoadOrStore(dedupKey{m, pruning}, nil); dup {
    			// m has already been enqueued for loading. Since unpruned loading may
    			// follow cycles in the requirement graph, we need to return early
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 16:04:44 UTC 2024
    - 53.8K bytes
    - Viewed (0)
Back to top