Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 404 for Decrement (0.27 sec)

  1. src/cmd/link/internal/ld/inittask.go

    		}
    
    		// Find all incoming edges into s.
    		a := sort.Search(len(edges), func(i int) bool { return edges[i].to >= s })
    		b := sort.Search(len(edges), func(i int) bool { return edges[i].to > s })
    
    		// Decrement the import count for all packages that import s.
    		// If the count reaches 0, that package is now ready to schedule.
    		for _, e := range edges[a:b] {
    			m[e.from]--
    			if m[e.from] == 0 {
    				h.push(ldr, e.from)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 20:09:45 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/AggregateFutureState.java

        abstract void compareAndSetSeenExceptions(
            AggregateFutureState<?> state, @CheckForNull Set<Throwable> expect, Set<Throwable> update);
    
        /** Atomic decrement-and-get of the {@link AggregateFutureState#remaining} field. */
        abstract int decrementAndGetRemainingCount(AggregateFutureState<?> state);
      }
    
      private static final class SafeAtomicHelper extends AtomicHelper {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 20:40:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. pkg/monitoring/monitoring_test.go

    		for n := 0; n < b.N; n++ {
    			testSum.Increment()
    		}
    	})
    	b.Run("dynamic labels", func(b *testing.B) {
    		for n := 0; n < b.N; n++ {
    			testSum.With(name.Value("test")).Increment()
    		}
    	})
    	b.Run("static labels", func(b *testing.B) {
    		testSum := testSum.With(name.Value("test"))
    		for n := 0; n < b.N; n++ {
    			testSum.Increment()
    		}
    	})
    }
    
    func BenchmarkGauge(b *testing.B) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 13 16:04:48 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  4. src/internal/gover/gover.go

    // if the decimal is all zeroes.
    // (Copied from golang.org/x/mod/module's decDecimal.)
    func DecInt(decimal string) string {
    	// Scan right to left turning 0s to 9s until you find a digit to decrement.
    	digits := []byte(decimal)
    	i := len(digits) - 1
    	for ; i >= 0 && digits[i] == '0'; i-- {
    		digits[i] = '9'
    	}
    	if i < 0 {
    		// decimal is all zeros
    		return ""
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 23:20:32 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt

        val relay = edit(file, upstream, metadata, 1024)
        val source1 = relay.newSource()
        val source2 = relay.newSource()
        source1!!.close()
        source1.close() // Unnecessary. Shouldn't decrement the reference count.
        assertThat(relay.isClosed).isFalse()
        source2!!.close()
        assertThat(relay.isClosed).isTrue()
        assertFile(Relay.PREFIX_DIRTY, -1L, -1, null, null)
      }
    
      @Test
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/mod/module/pseudo.go

    // decDecimal returns the decimal string decremented by 1, or the empty string
    // if the decimal is all zeroes.
    func decDecimal(decimal string) string {
    	// Scan right to left turning 0s to 9s until you find a digit to decrement.
    	digits := []byte(decimal)
    	i := len(digits) - 1
    	for ; i >= 0 && digits[i] == '0'; i-- {
    		digits[i] = '9'
    	}
    	if i < 0 {
    		// decimal is all zeros
    		return ""
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 20:38:21 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  7. cmd/http-stats.go

    	}
    
    	if w == nil { // when response recorder nil, this is an active request
    		hstats.currentS3Requests.Inc(api)
    		bh.httpStats[bucket] = hstats
    		return
    	} // else {
    	hstats.currentS3Requests.Dec(api) // decrement this once we have the response recorder.
    
    	hstats.totalS3Requests.Inc(api)
    	code := w.StatusCode
    
    	switch {
    	case code == 0:
    	case code == 499:
    		// 499 is a good error, shall be counted as canceled.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 06:25:13 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  8. common/config/.golangci.yml

          - name: unexported-return
          - name: errorf
          - name: context-as-argument
          - name: dot-imports
          - name: error-return
          - name: error-strings
          - name: error-naming
          - name: increment-decrement
          - name: var-naming
          - name: package-comments
          - name: range
          - name: receiver-naming
          - name: indent-error-flow
          - name: superfluous-else
          - name: modifies-parameter
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 04 20:03:06 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  9. src/sync/poolqueue.go

    	var slot *eface
    	for {
    		ptrs := d.headTail.Load()
    		head, tail := d.unpack(ptrs)
    		if tail == head {
    			// Queue is empty.
    			return nil, false
    		}
    
    		// Confirm tail and decrement head. We do this before
    		// reading the value to take back ownership of this
    		// slot.
    		head--
    		ptrs2 := d.pack(head, tail)
    		if d.headTail.CompareAndSwap(ptrs, ptrs2) {
    			// We successfully took back slot.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 18:12:29 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/util/version.go

    	// including the offset e.g. `alpha.0.206`. This is done to comply with GCR image tags.
    	pre := v.PreRelease()
    	patch := v.Patch()
    	if len(pre) > 0 {
    		if patch > 0 {
    			// If the patch version is more than zero, decrement it and remove the label.
    			// this is done to comply with the latest stable patch release.
    			patch = patch - 1
    			pre = ""
    		} else {
    			split := strings.Split(pre, ".")
    			if len(split) > 2 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 10:50:19 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top