Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 100 for incrementAndGet (0.05 sec)

  1. android/guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

                .build(
                    new CacheLoader<Integer, Integer>() {
                      @Override
                      public Integer load(Integer from) {
                        return (int) misses.incrementAndGet();
                      }
                    });
    
        // To start, fill up the cache.
        // Each miss both increments the counter and causes the map to grow by one,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/helper/AbstractConfigHelperTest.java

            private final AtomicInteger loadCallCount = new AtomicInteger(0);
            private LoadCallback loadCallback = () -> 0;
    
            @Override
            public int load() {
                loadCallCount.incrementAndGet();
                return loadCallback.call();
            }
    
            public void setLoadCallback(LoadCallback callback) {
                this.loadCallback = callback;
            }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 00:03:47 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

                .build(
                    new CacheLoader<Integer, Integer>() {
                      @Override
                      public Integer load(Integer from) {
                        return (int) misses.incrementAndGet();
                      }
                    });
    
        // To start, fill up the cache.
        // Each miss both increments the counter and causes the map to grow by one,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

              TrustedListenableFutureTask.create(
                  new Callable<Integer>() {
                    @Override
                    public Integer call() {
                      return counter.incrementAndGet();
                    }
                  });
          CyclicBarrier barrier = new CyclicBarrier(numThreads + 1);
          Runnable wrapper =
              new Runnable() {
                @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/BufferCache.java

            }
    
            // Only cache if we haven't reached the limit - O(1) check
            if (queueSize.get() < MAX_BUFFERS) {
                if (bufferQueue.offer(buf)) { // O(1) operation
                    queueSize.incrementAndGet();
                }
            }
            // If queue is full, let the buffer be garbage collected
        }
    
        /**
         * Get current cache statistics for monitoring
         * @return formatted statistics string
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java

        Multiset<String> multiset =
            new NoRemoveMultiset<String>() {
              @Override
              public int add(String element, int occurrences) {
                addCalls.incrementAndGet();
                return super.add(element, occurrences);
              }
            };
        ImmutableMultiset<String> adds =
            new ImmutableMultiset.Builder<String>().addCopies("x", 10).build();
        multiset.addAll(adds);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/AbstractTransformerTest.java

                                // Read name
                                String name = testTransformer.getName();
                                if (!"concurrentName".equals(name)) {
                                    errorCount.incrementAndGet();
                                }
    
                                // Occasionally change name (10% of threads)
                                if (threadId % 10 == 0 && j % 10 == 0) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactoryTest.java

            private static AtomicInteger instanceCounter = new AtomicInteger(0);
            private final int id;
            private boolean destroyed = false;
    
            public TestComponent() {
                this.id = instanceCounter.incrementAndGet();
            }
    
            public int getId() {
                return id;
            }
    
            public boolean isDestroyed() {
                return destroyed;
            }
    
            public void destroy() {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/witness/MockWitnessService.java

         * @return the registration ID
         */
        public String registerWitness(String shareName, String serverAddress, int flags) {
            String registrationId = "MOCK-REG-" + registrationCounter.incrementAndGet();
            MockRegistration registration = new MockRegistration(registrationId, shareName, serverAddress, flags);
            registrations.put(registrationId, registration);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbTreeImpl.java

        }
    
        /**
         * @param track
         * @return tree with increased usage count
         */
        public SmbTreeImpl acquire(final boolean track) {
            final long usage = this.usageCount.incrementAndGet();
            if (log.isTraceEnabled()) {
                log.trace("Acquire tree " + usage + " " + this);
            }
    
            if (track && this.traceResource) {
                synchronized (this.acquires) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
Back to top