Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 655 for counter2 (0.19 sec)

  1. src/crypto/aes/gcm_s390x.go

    	// with a four-byte big-endian counter starting at one, is used
    	// directly as the starting counter. For other nonce sizes, the counter
    	// is computed by passing it through the GHASH function.
    	var counter gcmCount
    	if len(nonce) == gcmStandardNonceSize {
    		copy(counter[:], nonce)
    		counter[gcmBlockSize-1] = 1
    	} else {
    		var hash [16]byte
    		g.paddedGHASH(&hash, nonce)
    		lens := gcmLengths(0, uint64(len(nonce))*8)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformIsolationIntegrationTest.groovy

                        def counter = parameters.counter
                        println "Transforming \${input.name} to \${output.name}"
                        output.withWriter { out ->
                            out.println String.valueOf(counter.getCount())
                            for (int i = 0; i < 4; i++) {
                                out.println String.valueOf(counter.increment())
                            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  3. src/sync/waitgroup.go

    	noCopy noCopy
    
    	state atomic.Uint64 // high 32 bits are counter, low 32 bits are waiter count.
    	sema  uint32
    }
    
    // Add adds delta, which may be negative, to the [WaitGroup] counter.
    // If the counter becomes zero, all goroutines blocked on [WaitGroup.Wait] are released.
    // If the counter goes negative, Add panics.
    //
    // Note that calls with a positive delta that occur when the counter is zero
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/api/batch/v1/types_swagger_doc_generated.go

    that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status:\n\n1. Add the pod UID to the arrays in this field. 2. Remove the pod finalizer. 3. Remove the pod UID from the arrays while increasing the corresponding\n    counter.\n\nOld jobs might not be tracked using this field, in which case the field remains...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 12:01:28 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/ExclusiveCacheAccessingWorkerTest.groovy

        }
    
        def "read runs after queued writes are processed"() {
            given:
            def counter = 0
            start(cacheAccessWorker)
    
            when:
            cacheAccessWorker.enqueue { ++counter }
            cacheAccessWorker.enqueue { ++counter }
            def result = cacheAccessWorker.read { counter }
    
            then:
            result == 2
    
            cleanup:
            cacheAccessWorker?.stop()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/telemetry/internal/upload/date.go

    }
    
    // avoid parsing count files multiple times
    type parsedCache struct {
    	mu sync.Mutex
    	m  map[string]*counter.File
    }
    
    func (u *uploader) parseCountFile(fname string) (*counter.File, error) {
    	u.cache.mu.Lock()
    	defer u.cache.mu.Unlock()
    	if u.cache.m == nil {
    		u.cache.m = make(map[string]*counter.File)
    	}
    	if f, ok := u.cache.m[fname]; ok {
    		return f, nil
    	}
    	buf, err := os.ReadFile(fname)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:12:15 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/filters/metrics_test.go

    			},
    			status: true,
    			want: `
    				# HELP authenticated_user_requests [ALPHA] Counter of authenticated requests broken out by username.
    				# TYPE authenticated_user_requests counter
    				authenticated_user_requests{username="admin"} 1
            # HELP authentication_attempts [ALPHA] Counter of authenticated attempts.
            # TYPE authentication_attempts counter
            authentication_attempts{result="success"} 1
    				`,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 20 13:35:55 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  8. src/net/http/triv.go

    }
    
    // Simple counter server. POSTing to it will set the value.
    type Counter struct {
    	mu sync.Mutex // protects n
    	n  int
    }
    
    // This makes Counter satisfy the [expvar.Var] interface, so we can export
    // it directly.
    func (ctr *Counter) String() string {
    	ctr.mu.Lock()
    	defer ctr.mu.Unlock()
    	return strconv.Itoa(ctr.n)
    }
    
    func (ctr *Counter) ServeHTTP(w http.ResponseWriter, req *http.Request) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/ChmodBenchmark.java

            this.tempDirFile = tempDirPath.toFile();
            this.counter = new AtomicInteger();
        }
    
        @TearDown(Level.Iteration)
        public void tearDownIteration() throws IOException {
            FileUtils.forceDelete(tempDirFile);
        }
    
        @Benchmark
        public void createFileJava6(Blackhole blackhole) throws IOException {
            File file = new File(tempDirFile, "file-" + counter.incrementAndGet());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 12:13:32 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/tutorial/dynamicDepends/kotlin/build.gradle.kts

    repeat(4) { counter ->
        tasks.register("task$counter") {
            doLast {
                println("I'm task number $counter")
            }
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 196 bytes
    - Viewed (0)
Back to top