Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 31 for compareAndSet (0.89 sec)

  1. api/maven-api-model/src/main/java/org/apache/maven/api/model/ModelObjectProcessor.java

            }
    
            ModelObjectProcessor processor = ProcessorHolder.CACHED_PROCESSOR.get();
            if (processor == null) {
                processor = loadProcessor();
                ProcessorHolder.CACHED_PROCESSOR.compareAndSet(null, processor);
                processor = ProcessorHolder.CACHED_PROCESSOR.get();
            }
            return processor.process(object);
        }
    
        /**
         * Load the first available processor implementation.
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

           * other callers have added to it.
           *
           * This read is guaranteed to get us the right value because we only set this once (here).
           *
           * requireNonNull is safe because either our compareAndSet succeeded or it failed because
           * another thread did it for us.
           */
          seenExceptionsLocal = requireNonNull(seenExceptionsField);
        }
        return seenExceptionsLocal;
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/BasePublicSuffixList.kt

          }
        } finally {
          readCompleteLatch.countDown()
        }
      }
    
      abstract fun listSource(): Source
    
      override fun ensureLoaded() {
        if (!listRead.get() && listRead.compareAndSet(false, true)) {
          readTheListUninterruptibly()
        } else {
          try {
            readCompleteLatch.await()
          } catch (_: InterruptedException) {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt

        check(executed.compareAndSet(false, true)) { "Already Executed" }
    
        timeout.enter()
        callStart()
        try {
          client.dispatcher.executed(this)
          return getResponseWithInterceptorChain()
        } finally {
          client.dispatcher.finished(this)
        }
      }
    
      override fun enqueue(responseCallback: Callback) {
        check(executed.compareAndSet(false, true)) { "Already Executed" }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java

        for (int i = 0; i < 10; i++) {
          int expectedCount = i;
          list.add(
              new Runnable() {
                @Override
                public void run() {
                  integer.compareAndSet(expectedCount, expectedCount + 1);
                }
              },
              directExecutor());
        }
        list.execute();
        assertEquals(10, integer.get());
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/util/AuthenticationRateLimiter.java

            long windowStart = currentWindowStart.get();
    
            // Check if we need to reset the window (1 minute window)
            if (now - windowStart > 60000) {
                currentWindowStart.compareAndSet(windowStart, now);
                globalAttemptsInCurrentWindow.set(0);
            }
    
            int attempts = globalAttemptsInCurrentWindow.incrementAndGet();
            return attempts <= maxGlobalAttemptsPerMinute;
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbSessionImpl.java

                log.trace("Acquire session " + usage + " " + this);
            }
    
            if (usage == 1) {
                synchronized (this) {
                    if (this.transportAcquired.compareAndSet(false, true)) {
                        log.debug("Reacquire transport");
                        this.transport.acquire();
                    }
                }
            }
    
            return this;
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/Tags.kt

        if (computed == null) {
          computed = compute()
        }
    
        // If we successfully add the computed element, we're done.
        val newTags = tags.plus(type, computed)
        if (compareAndSet(tags, newTags)) return computed
    
        // We lost the race. Possibly to other code that was putting a *different* key. Try again!
      }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Oct 24 11:37:46 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/util/SmbCircuitBreaker.java

            while (responseTimeMs < currentMin) {
                if (minResponseTime.compareAndSet(currentMin, responseTimeMs)) {
                    break;
                }
                currentMin = minResponseTime.get();
            }
    
            long currentMax = maxResponseTime.get();
            while (responseTimeMs > currentMax) {
                if (maxResponseTime.compareAndSet(currentMax, responseTimeMs)) {
                    break;
                }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/transfer/SimplexTransferListener.java

            this.updater = new Thread(this::feedConsumer, "simplex-transfer-listener");
            updater.setDaemon(true);
            updater.start();
        }
    
        @Override
        public void close() {
            if (closed.compareAndSet(false, true)) {
                updater.interrupt();
            }
        }
    
        public TransferListener getDelegate() {
            return delegate;
        }
    
        private void feedConsumer() {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Feb 06 11:28:05 UTC 2025
    - 8.7K bytes
    - Viewed (0)
Back to top