Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getAndSet (1.21 sec)

  1. guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

        Count existingCounter;
        int oldCount;
        if (count == 0) {
          existingCounter = backingMap.remove(element);
          oldCount = getAndSet(existingCounter, count);
        } else {
          existingCounter = backingMap.get(element);
          oldCount = getAndSet(existingCounter, count);
    
          if (existingCounter == null) {
            backingMap.put(element, new Count(count));
          }
        }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/SimpleCircuitBreaker.java

            log.info("Circuit breaker {} reset", name);
        }
    
        /**
         * Force the circuit to open
         */
        public void tripBreaker() {
            State previous = state.getAndSet(State.OPEN);
            if (previous != State.OPEN) {
                stateChangeTime.set(System.currentTimeMillis());
                lastFailureTime.set(System.currentTimeMillis());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbTreeImpl.java

                    if (waitForState(transport) == 2) {
                        // already connected
                        return null;
                    }
                    final int before = this.connectionState.getAndSet(1);
                    if (before == 1) {
                        // concurrent connection attempt
                        if (waitForState(transport) == 2) {
                            // finished connecting
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  4. src/main/java/jcifs/util/SmbCircuitBreaker.java

            return timeSinceLastFailure >= resetTimeoutMillis;
        }
    
        private void transitionTo(State newState) {
            State oldState = state.getAndSet(newState);
            lastStateChangeTime.set(System.currentTimeMillis());
    
            if (oldState != newState) {
                log.info("[{}] Circuit breaker state transition: {} -> {}", name, oldState, newState);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

         * cancelled before the callable started execution.
         */
        SettableFuture<@Nullable Void> newFuture = SettableFuture.create();
    
        ListenableFuture<@Nullable Void> oldFuture = ref.getAndSet(newFuture);
    
        // Invoke our task once the previous future completes.
        TrustedListenableFutureTask<T> taskFuture = TrustedListenableFutureTask.create(task);
        oldFuture.addListener(taskFuture, taskExecutor);
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 01:35:55 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

         * cancelled before the callable started execution.
         */
        SettableFuture<@Nullable Void> newFuture = SettableFuture.create();
    
        ListenableFuture<@Nullable Void> oldFuture = ref.getAndSet(newFuture);
    
        // Invoke our task once the previous future completes.
        TrustedListenableFutureTask<T> taskFuture = TrustedListenableFutureTask.create(task);
        oldFuture.addListener(taskFuture, taskExecutor);
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 01:35:55 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/exec/Crawler.java

         * It's called both during normal shutdown and in error conditions.
         */
        private static void destroyContainer() {
            if (running.getAndSet(false)) {
                TimeoutManager.getInstance().stop();
                if (logger.isDebugEnabled()) {
                    logger.debug("Destroying LaContainer...");
                }
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/SystemHelper.java

         * @param status The current cluster status.
         * @return true if the state has changed, false otherwise.
         */
        public boolean isChangedClusterState(final int status) {
            return previousClusterState.getAndSet(status) != status;
        }
    
        /**
         * Creates a new action validator.
         *
         * @param requestManager  The request manager.
         * @param messagesCreator The messages creator.
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 20 08:30:43 UTC 2025
    - 36.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

       *
       * <p>Triggers test case failure if interrupt status is set in the main thread.
       */
      @Override
      public void tearDown() throws Exception {
        Throwable t = threadFailure.getAndSet(null);
        if (t != null) {
          if (t instanceof Error) throw (Error) t;
          else if (t instanceof RuntimeException) throw (RuntimeException) t;
          else if (t instanceof Exception) throw (Exception) t;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:07:52 UTC 2025
    - 37.8K bytes
    - Viewed (0)
Back to top