Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 18 for Decrements (0.07 seconds)

  1. android/guava/src/com/google/common/util/concurrent/DirectExecutorService.java

          }
          runningTasks++;
        }
      }
    
      /** Decrements the running task count. */
      private void endTask() {
        synchronized (lock) {
          int numRunning = --runningTasks;
          if (numRunning == 0) {
            lock.notifyAll();
          }
        }
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Dec 16 14:23:59 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  2. guava/src/com/google/common/util/concurrent/AtomicLongMap.java

       */
      public long get(K key) {
        return map.getOrDefault(key, 0L);
      }
    
      /**
       * Increments by one the value currently associated with {@code key}, and returns the new value.
       */
      @CanIgnoreReturnValue
      public long incrementAndGet(K key) {
        return addAndGet(key, 1);
      }
    
      /**
       * Decrements by one the value currently associated with {@code key}, and returns the new value.
       */
      @CanIgnoreReturnValue
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 10 23:13:45 GMT 2025
    - 11.7K bytes
    - Click Count (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerThreadTest.java

            method.setAccessible(true);
            method.invoke(crawlerThread);
    
            assertEquals(Integer.valueOf(1), crawlerContext.getActiveThreadCount());
        }
    
        /**
         * Test finishCrawling decrements active thread count.
         */
        public void test_finishCrawling() throws Exception {
            crawlerContext.setActiveThreadCount(1);
    
            // Use reflection to access protected method
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Mon Nov 24 03:59:47 GMT 2025
    - 18.3K bytes
    - Click Count (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerContextTest.java

            assertEquals(1L, crawlerContext.decrementAndGetAccessCount());
    
            // Test large increments
            for (int i = 0; i < 1000; i++) {
                crawlerContext.incrementAndGetAccessCount();
            }
            assertEquals(1001L, crawlerContext.getAccessCount());
    
            // Test large decrements
            for (int i = 0; i < 500; i++) {
                crawlerContext.decrementAndGetAccessCount();
            }
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Sat Sep 06 04:15:37 GMT 2025
    - 25.6K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/witness/WitnessRegistration.java

         */
        public void updateHeartbeat() {
            this.lastHeartbeat = System.currentTimeMillis();
            this.heartbeatFailures = 0;
        }
    
        /**
         * Increments the heartbeat failure count.
         */
        public void incrementHeartbeatFailures() {
            this.heartbeatFailures++;
        }
    
        /**
         * Gets the number of consecutive heartbeat failures.
         *
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Mon Aug 25 14:34:10 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  6. cmd/http-tracer_test.go

    	wg.Wait()
    
    	finalStats := stats.Load(false)
    	expected := numGoroutines * opsPerGoroutine
    	actual := finalStats["TestAPI"]
    	if actual != expected {
    		t.Errorf("Race condition detected: expected %d, got %d (lost %d increments)",
    			expected, actual, expected-actual)
    	}
    }
    
    // TestBucketHTTPStatsRaceCondition tests concurrent access to bucket-level HTTP stats.
    func TestRaulBucketHTTPStatsRaceCondition(t *testing.T) {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  7. docs/en/docs/tutorial/extra-models.md

    ///
    
    ## Reduce duplication { #reduce-duplication }
    
    Reducing code duplication is one of the core ideas in **FastAPI**.
    
    As code duplication increments the chances of bugs, security issues, code desynchronization issues (when you update in one place but not in the others), etc.
    
    And these models are all sharing a lot of the data and duplicating attribute names and types.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  8. cmd/namespace-lock.go

    	if readLock {
    		locked = nsLk.GetRLock(ctx, opsID, lockSource, timeout)
    	} else {
    		locked = nsLk.GetLock(ctx, opsID, lockSource, timeout)
    	}
    
    	if !locked { // We failed to get the lock
    		// Decrement ref count since we failed to get the lock
    		n.lockMapMutex.Lock()
    		n.lockMap[resource].ref--
    		if n.lockMap[resource].ref < 0 {
    			logger.CriticalIf(GlobalContext, errors.New("resource reference count was lower than 0"))
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

        double trueLog2 = StrictMath.log(d) / StrictMath.log(2);
        // increment until it's >= the true value
        while (StrictMath.pow(2.0, trueLog2) < d) {
          trueLog2 = StrictMath.nextUp(trueLog2);
        }
        // decrement until it's <= the true value
        while (StrictMath.pow(2.0, trueLog2) > d) {
          trueLog2 = StrictMath.nextAfter(trueLog2, Double.NEGATIVE_INFINITY);
        }
        if (StrictMath.abs(StrictMath.pow(2.0, trueLog2) - d)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Oct 30 14:15:36 GMT 2025
    - 27.3K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/crawler/FessCrawlerThread.java

                }
            }
            return true;
        }
    
        /**
         * Stores child URLs from the given set into the crawling queue for future processing.
         * This method filters out blank URLs and increments the depth for child URLs.
         *
         * @param urlQueue the parent URL queue item
         * @param childUrlSet the set of child URLs to be queued for crawling
         */
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Dec 11 09:47:03 GMT 2025
    - 19.5K bytes
    - Click Count (0)
Back to Top