Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for Cur (0.2 sec)

  1. src/cmd/vendor/golang.org/x/sync/semaphore/semaphore.go

    func (s *Weighted) TryAcquire(n int64) bool {
    	s.mu.Lock()
    	success := s.size-s.cur >= n && s.waiters.Len() == 0
    	if success {
    		s.cur += n
    	}
    	s.mu.Unlock()
    	return success
    }
    
    // Release releases the semaphore with a weight of n.
    func (s *Weighted) Release(n int64) {
    	s.mu.Lock()
    	s.cur -= n
    	if s.cur < 0 {
    		s.mu.Unlock()
    		panic("semaphore: released more than held")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. src/mime/encodedword.go

    		if start == -1 {
    			break
    		}
    		cur := start + len("=?")
    
    		i := strings.Index(header[cur:], "?")
    		if i == -1 {
    			break
    		}
    		charset := header[cur : cur+i]
    		cur += i + len("?")
    
    		if len(header) < cur+len("Q??=") {
    			break
    		}
    		encoding := header[cur]
    		cur++
    
    		if header[cur] != '?' {
    			break
    		}
    		cur++
    
    		j := strings.Index(header[cur:], "?=")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 10K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/liveness/intervals.go

    	var ret Intervals
    	var pv pairVisitor
    	cur := pv.init(is, is2)
    	for {
    		second := pv.nxt()
    		if second.done() {
    			break
    		}
    
    		// Check for overlap between cur and second. If no overlap
    		// then add cur to result and move on.
    		if !cur.i.Overlaps(second.i) && !cur.i.adjacent(second.i) {
    			ret = append(ret, cur.i)
    			cur = second
    			continue
    		}
    		// cur overlaps with second; merge second into cur
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 21:55:27 UTC 2024
    - 10K bytes
    - Viewed (0)
  4. pilot/cmd/pilot-agent/app/fds_unix.go

    func raiseFileLimits() (uint64, error) {
    	rlimit := unix.Rlimit{}
    	if err := unix.Getrlimit(unix.RLIMIT_NOFILE, &rlimit); err != nil {
    		return 0, err
    	}
    	rlimit.Cur = rlimit.Max
    	if err := unix.Setrlimit(unix.RLIMIT_NOFILE, &rlimit); err != nil {
    		return 0, err
    	}
    
    	return rlimit.Cur, nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 06 22:16:26 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  5. pkg/controller/daemon/update.go

    		// Create a new history if the current one isn't found
    		cur, err = dsc.snapshot(ctx, ds, currRevision)
    		if err != nil {
    			return nil, nil, err
    		}
    	default:
    		cur, err = dsc.dedupCurHistories(ctx, ds, currentHistories)
    		if err != nil {
    			return nil, nil, err
    		}
    		// Update revision number if necessary
    		if cur.Revision < currRevision {
    			toUpdate := cur.DeepCopy()
    			toUpdate.Revision = currRevision
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 16:53:53 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  6. src/syscall/rlimit.go

    // which Go of course has no choice but to respect.
    func init() {
    	var lim Rlimit
    	if err := Getrlimit(RLIMIT_NOFILE, &lim); err == nil && lim.Cur != lim.Max {
    		origRlimitNofile.Store(&lim)
    		nlim := lim
    		nlim.Cur = nlim.Max
    		adjustFileLimit(&nlim)
    		setrlimit(RLIMIT_NOFILE, &nlim)
    	}
    }
    
    func Setrlimit(resource int, rlim *Rlimit) error {
    	if resource == RLIMIT_NOFILE {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:57 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. src/runtime/mpallocbits.go

    		// Final region that might span to next uint64
    		cur = l
    	}
    	if start == notSetYet {
    		// Made it all the way through without finding a single 1 bit.
    		const n = uint(64 * len(b))
    		return packPallocSum(n, n, n)
    	}
    	most = max(most, cur)
    
    	if most >= 64-2 {
    		// There is no way an internal run of zeros could beat max.
    		return packPallocSum(start, most, cur)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 15:13:43 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  8. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultLifecycleBindingsInjector.java

            }
        }
    
        private void addPlugin(Map<Plugin, Plugin> plugins, Plugin plugin) {
            Plugin cur = plugins.putIfAbsent(plugin, plugin);
            if (cur != null) {
                Map<String, PluginExecution> execs = new LinkedHashMap<>();
                cur.getExecutions().forEach(e -> execs.put(e.getId(), e));
                plugin.getExecutions().forEach(e -> {
                    int i = 0;
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  9. src/archive/tar/common.go

    		return false
    	}
    	var pre sparseEntry
    	for _, cur := range sp {
    		switch {
    		case cur.Offset < 0 || cur.Length < 0:
    			return false // Negative values are never okay
    		case cur.Offset > math.MaxInt64-cur.Length:
    			return false // Integer overflow with large length
    		case cur.endOffset() > size:
    			return false // Region extends beyond the actual size
    		case pre.endOffset() > cur.Offset:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 16:01:50 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/google/pprof/internal/graph/graph.go

    		// children to make them each roots of their own trees.
    		if len(cur.In) == 0 {
    			for _, outEdge := range cur.Out {
    				delete(outEdge.Dest.In, cur)
    			}
    			continue
    		}
    
    		// Get the parent. This works since at this point cur.In must contain only
    		// one element.
    		if len(cur.In) != 1 {
    			panic("Get parent assertion failed. cur.In expected to be of length 1.")
    		}
    		var parent *Node
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31K bytes
    - Viewed (0)
Back to top