Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 60 for Races (0.02 sec)

  1. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

        when(backingMap.get(KEY)).thenReturn(new AtomicInteger(INITIAL_COUNT));
    
        assertThrows(IllegalArgumentException.class, () -> multiset.add(KEY, COUNT_TO_ADD));
      }
    
      /**
       * Simulate some of the races that can happen on add. We can't easily simulate the race that
       * happens when an {@link AtomicInteger#compareAndSet} fails, but we can simulate the case where
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

         * is held in the Sync state, and the lock is released whenever the state changes to {@link
         * #COMPLETED}, {@link #CANCELLED}, or {@link #INTERRUPTED}
         *
         * <p>To avoid races between threads doing release and acquire, we transition to the final state
         * in two steps. One thread will successfully CAS from RUNNING to COMPLETING, that thread will
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. cmd/prepare-storage.go

    		if err == nil && format != nil {
    			// Assign globalDeploymentID() on first run for the
    			// minio server managing the first disk
    			globalDeploymentIDPtr.Store(&format.ID)
    
    			// Set the deployment ID here to avoid races.
    			xhttp.SetDeploymentID(format.ID)
    			xhttp.SetMinIOVersion(Version)
    		}
    	}()
    
    	format, err = connectLoadInitFormats(verbose, firstDisk, storageDisks, endpoints, poolCount, setCount, setDriveCount, deploymentID)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 20:51:54 UTC 2024
    - 11.1K bytes
    - Viewed (1)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

          },
        )
      }
    
      /**
       * Holding the lock of the connection being added or removed when mutating this, and check its
       * [RealConnection.noNewExchanges] property. This defends against races where a connection is
       * simultaneously adopted and removed.
       */
      private val connections = ConcurrentLinkedQueue<RealConnection>()
    
      init {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

        a.set(0, 1.0);
        Thread t =
            newStartedThread(
                new CheckedRunnable() {
                  @Override
                  @SuppressWarnings("ThreadPriorityCheck") // doing our best to test for races
                  public void realRun() {
                    while (!a.compareAndSet(0, 2.0, 3.0)) {
                      Thread.yield();
                    }
                  }
                });
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

        when(backingMap.get(KEY)).thenReturn(new AtomicInteger(INITIAL_COUNT));
    
        assertThrows(IllegalArgumentException.class, () -> multiset.add(KEY, COUNT_TO_ADD));
      }
    
      /**
       * Simulate some of the races that can happen on add. We can't easily simulate the race that
       * happens when an {@link AtomicInteger#compareAndSet} fails, but we can simulate the case where
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/hash/Striped64.java

      @CheckForNull transient volatile Cell[] cells;
    
      /**
       * Base value, used mainly when there is no contention, but also as a fallback during table
       * initialization races. Updated via CAS.
       */
      transient volatile long base;
    
      /** Spinlock (locked via CAS) used when resizing and/or creating Cells. */
      transient volatile int busy;
    
      /** Package-private default constructor */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 17:55:55 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/ConnectionCoalescingTest.kt

          HandshakeCertificates.Builder()
            .addTrustedCertificate(rootCa.certificate)
            .build()
        client =
          clientTestRule.newClientBuilder()
            .fastFallback(false) // Avoid data races.
            .dns(dns)
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            )
            .build()
        val serverHandshakeCertificates =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

          new AtomicReference<>(immediateVoidFuture());
    
      private @LazyInit ThreadConfinedTaskQueue latestTaskQueue = new ThreadConfinedTaskQueue();
    
      /**
       * This object is unsafely published, but avoids problematic races by relying exclusively on the
       * identity equality of its Thread field so that the task field is only accessed by a single
       * thread.
       */
      private static final class ThreadConfinedTaskQueue {
        /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt

          "plan 1 TCP connected",
          "plan 1 TLS connecting...",
          "plan 1 TLS connected",
        )
    
        taskFaker.assertNoMoreTasks()
      }
    
      /**
       * This test performs two races:
       *
       *  * The first race is between plan0 and plan1, with a 250 ms head start for plan0.
       *  * The second race is between plan2 and plan3, with a 250 ms head start for plan2.
       *
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 24 04:40:49 UTC 2024
    - 20.9K bytes
    - Viewed (0)
Back to top