Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for weakCompareAndSet (0.06 seconds)

  1. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

      }
    
      /** repeated weakCompareAndSet succeeds in changing value when equal to expected */
      public void testWeakCompareAndSet() {
        double prev = Math.E;
        double unused = Math.E + Math.PI;
        AtomicDouble at = new AtomicDouble(prev);
        for (double x : VALUES) {
          assertBitEquals(prev, at.get());
          assertFalse(at.weakCompareAndSet(unused, x));
          assertBitEquals(prev, at.get());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/util/concurrent/AtomicDouble.java

       *
       * @param expect the expected value
       * @param update the new value
       * @return {@code true} if successful
       */
      public final boolean weakCompareAndSet(double expect, double update) {
        return value.weakCompareAndSet(doubleToRawLongBits(expect), doubleToRawLongBits(update));
      }
    
      /**
       * Atomically adds the given value to the current value.
       *
       * @param delta the value to add
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java

       *
       * @param i the index
       * @param expect the expected value
       * @param update the new value
       * @return true if successful
       */
      public final boolean weakCompareAndSet(int i, double expect, double update) {
        return longs.weakCompareAndSet(i, doubleToRawLongBits(expect), doubleToRawLongBits(update));
      }
    
      /**
       * Atomically adds the given value to the element at index {@code i}.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 8.1K bytes
    - Click Count (0)
Back to Top