Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for AtomicReference (1.51 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultLegacySupport.java

     * @since 3.0
     */
    @Named
    @Singleton
    public class DefaultLegacySupport implements LegacySupport {
    
        private static final ThreadLocal<AtomicReference<MavenSession>> SESSION = new InheritableThreadLocal<>();
    
        @Override
        public void setSession(MavenSession session) {
            AtomicReference<MavenSession> reference = DefaultLegacySupport.SESSION.get();
            if (reference != null) {
                reference.set(null);
            }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/AbstractLoadingCacheTest.java

    @NullUnmarked
    public class AbstractLoadingCacheTest extends TestCase {
    
      public void testGetUnchecked_checked() {
        Exception cause = new Exception();
        AtomicReference<Object> valueRef = new AtomicReference<>();
        LoadingCache<Object, Object> cache =
            new AbstractLoadingCache<Object, Object>() {
              @Override
              public Object get(Object key) throws ExecutionException {
                Object v = valueRef.get();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 5K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/TagsTest.kt

        val tags = EmptyTags
        val atomicTags = AtomicReference<Tags>(tags)
        assertThat(atomicTags.computeIfAbsent(String::class) { "a" }).isEqualTo("a")
        assertThat(atomicTags.get()[String::class]).isEqualTo("a")
      }
    
      @Test
      fun computeIfAbsentWhenPresent() {
        val tags = EmptyTags.plus(String::class, "a")
        val atomicTags = AtomicReference(tags)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Oct 24 11:37:46 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

        assertThat(sepLoader).isSameInstanceAs(sepStopwatchC.getClassLoader());
        AtomicReference<Object> sepStopwatchA =
            new AtomicReference<Object>(sepStopwatchC.getMethod("createUnstarted").invoke(null));
        AtomicReference<WeakReference<?>> sepStopwatchRef =
            new AtomicReference<WeakReference<?>>(
                (WeakReference<?>) sepFwrCons.newInstance(sepStopwatchA.get(), sepFrqA.get()));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  5. impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/builder/multithreaded/SmartProjectComparatorTest.java

            int numIterations = 100;
            ExecutorService executor = Executors.newFixedThreadPool(numThreads);
            CountDownLatch latch = new CountDownLatch(numThreads);
            AtomicReference<Exception> exception = new AtomicReference<>();
    
            for (int i = 0; i < numThreads; i++) {
                executor.submit(() -> {
                    try {
                        for (int j = 0; j < numIterations; j++) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Aug 06 12:03:40 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java

        AtomicBoolean actualIsOccupied = new AtomicBoolean();
        AtomicBoolean actualIsOccupiedByCurrentThread = new AtomicBoolean();
        AtomicInteger actualOccupiedDepth = new AtomicInteger();
        AtomicReference<Throwable> thrown = new AtomicReference<>();
        joinUninterruptibly(
            startThread(
                new Runnable() {
                  @Override
                  public void run() {
                    try {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java

        AtomicBoolean actualIsOccupied = new AtomicBoolean();
        AtomicBoolean actualIsOccupiedByCurrentThread = new AtomicBoolean();
        AtomicInteger actualOccupiedDepth = new AtomicInteger();
        AtomicReference<Throwable> thrown = new AtomicReference<>();
        joinUninterruptibly(
            startThread(
                new Runnable() {
                  @Override
                  public void run() {
                    try {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 5K bytes
    - Viewed (0)
  8. api/maven-api-model/src/main/java/org/apache/maven/api/model/ModelObjectProcessor.java

            class ProcessorHolder {
                /**
                 * Cached processor instance for performance.
                 */
                private static final AtomicReference<ModelObjectProcessor> CACHED_PROCESSOR = new AtomicReference<>();
            }
    
            ModelObjectProcessor processor = ProcessorHolder.CACHED_PROCESSOR.get();
            if (processor == null) {
                processor = loadProcessor();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnsh/ShellInvoker.java

                keyMap.bind(new Reference("tailtip-toggle"), KeyMap.alt("s"));
    
                // start the shell and process input until the user quits with Ctrl-D
                AtomicReference<Exception> failure = new AtomicReference<>();
                while (true) {
                    try {
                        failure.set(null);
                        systemRegistry.cleanUp();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Oct 16 06:12:36 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/AutobahnTester.kt

     */
    package okhttp3
    
    import java.util.concurrent.CountDownLatch
    import java.util.concurrent.TimeUnit
    import java.util.concurrent.atomic.AtomicLong
    import java.util.concurrent.atomic.AtomicReference
    import okhttp3.internal.USER_AGENT
    import okio.ByteString
    
    /**
     * Exercises the web socket implementation against the
     * [Autobahn Testsuite](http://autobahn.ws/testsuite/).
     */
    class AutobahnTester {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.6K bytes
    - Viewed (0)
Back to top