Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for DELETE (0.1 sec)

  1. src/unique/handle.go

    	}
    	a, loaded := uniqueMaps.LoadOrStore(typ, m)
    	if !loaded {
    		// Add a cleanup function for the new map.
    		cleanupFuncsMu.Lock()
    		cleanupFuncs = append(cleanupFuncs, func() {
    			// Delete all the entries whose weak references are nil and clean up
    			// deleted entries.
    			m.All()(func(key T, wp weak.Pointer[T]) bool {
    				if wp.Strong() == nil {
    					m.CompareAndDelete(key, wp)
    				}
    				return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:01:55 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. src/cmd/go/internal/load/godebug.go

    			k, v, err := ParseGoDebug(d.Text)
    			if err != nil {
    				continue
    			}
    			if m == nil {
    				m = make(map[string]string)
    			}
    			m[k] = v
    		}
    	}
    	if v, ok := m["default"]; ok {
    		delete(m, "default")
    		v = strings.TrimPrefix(v, "go")
    		if gover.IsValid(v) {
    			goVersion = v
    		}
    	}
    
    	defaults := godebugForGoVersion(goVersion)
    	if defaults != nil {
    		// Apply m on top of defaults.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. src/os/removeall_at.go

    						pathErr.Path = base + string(PathSeparator) + pathErr.Path
    					}
    					numErr++
    					if recurseErr == nil {
    						recurseErr = err
    					}
    				}
    			}
    
    			// If we can delete any entry, break to start new iteration.
    			// Otherwise, we discard current names, get next entries and try deleting them.
    			if numErr != reqSize {
    				break
    			}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:26 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. src/internal/dag/parse.go

    	g.Nodes = append(g.Nodes, label)
    	g.edges[label] = map[string]bool{}
    	return true
    }
    
    func (g *Graph) AddEdge(from, to string) {
    	g.edges[from][to] = true
    }
    
    func (g *Graph) DelEdge(from, to string) {
    	delete(g.edges[from], to)
    }
    
    func (g *Graph) HasEdge(from, to string) bool {
    	return g.edges[from] != nil && g.edges[from][to]
    }
    
    func (g *Graph) Edges(from string) []string {
    	edges := make([]string, 0, 16)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. src/internal/trace/reader.go

    		if err != nil {
    			return false, err
    		}
    		if ok {
    			// If we successfully refreshed, update the heap.
    			heapUpdate(r.frontier, i)
    		} else {
    			// There's nothing else to read. Delete this cursor from the frontier.
    			r.frontier = heapRemove(r.frontier, i)
    		}
    		return true, nil
    	}
    	// Inject a CPU sample if it comes next.
    	if len(r.cpuSamples) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. src/time/sleep.go

    	// a fully tested async runtime implementation (asynctimerchan=2)
    	// and can make this function always return c.
    	//
    	// If we decide to keep the sync channels, we can delete all the
    	// handling of asynctimerchan in the runtime and keep just this
    	// function to handle asynctimerchan=1.
    	return *(*unsafe.Pointer)(unsafe.Pointer(&c))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:30 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. src/testing/fstest/mapfs.go

    		// then the directory is treated as not existing.
    		if file == nil && list == nil && len(need) == 0 {
    			return nil, &fs.PathError{Op: "open", Path: name, Err: fs.ErrNotExist}
    		}
    	}
    	for _, fi := range list {
    		delete(need, fi.name)
    	}
    	for name := range need {
    		list = append(list, mapFileInfo{name, &MapFile{Mode: fs.ModeDir | 0555}})
    	}
    	slices.SortFunc(list, func(a, b mapFileInfo) int {
    		return strings.Compare(a.name, b.name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  8. src/go/ast/commentmap.go

    // and returns the new node. Comments that were associated with the
    // old node are associated with the new node.
    func (cmap CommentMap) Update(old, new Node) Node {
    	if list := cmap[old]; len(list) > 0 {
    		delete(cmap, old)
    		cmap[new] = append(cmap[new], list...)
    	}
    	return new
    }
    
    // Filter returns a new comment map consisting of only those
    // entries of cmap for which a corresponding node exists in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/universe.go

    	_Clear:   {"clear", 1, false, statement},
    	_Close:   {"close", 1, false, statement},
    	_Complex: {"complex", 2, false, expression},
    	_Copy:    {"copy", 2, false, statement},
    	_Delete:  {"delete", 2, false, statement},
    	_Imag:    {"imag", 1, false, expression},
    	_Len:     {"len", 1, false, expression},
    	_Make:    {"make", 1, true, expression},
    	// To disable max/min, remove the next two lines.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. src/go/types/universe.go

    	_Clear:   {"clear", 1, false, statement},
    	_Close:   {"close", 1, false, statement},
    	_Complex: {"complex", 2, false, expression},
    	_Copy:    {"copy", 2, false, statement},
    	_Delete:  {"delete", 2, false, statement},
    	_Imag:    {"imag", 1, false, expression},
    	_Len:     {"len", 1, false, expression},
    	_Make:    {"make", 1, true, expression},
    	// To disable max/min, remove the next two lines.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top