Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for weakCompareAndSet (0.29 sec)

  1. 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());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 10.2K bytes
    - Viewed (0)
  2. 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());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

          double unused = Math.E + Math.PI;
          for (double x : VALUES) {
            assertBitEquals(prev, aa.get(i));
            assertFalse(aa.weakCompareAndSet(i, unused, x));
            assertBitEquals(prev, aa.get(i));
            while (!aa.weakCompareAndSet(i, prev, x)) {
              ;
            }
            assertBitEquals(x, aa.get(i));
            prev = x;
          }
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

          double unused = Math.E + Math.PI;
          for (double x : VALUES) {
            assertBitEquals(prev, aa.get(i));
            assertFalse(aa.weakCompareAndSet(i, unused, x));
            assertBitEquals(prev, aa.get(i));
            while (!aa.weakCompareAndSet(i, prev, x)) {
              ;
            }
            assertBitEquals(x, aa.get(i));
            prev = x;
          }
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. 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 updater.weakCompareAndSet(
            this, doubleToRawLongBits(expect), doubleToRawLongBits(update));
      }
    
      /**
       * Atomically adds the given value to the current value.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  6. 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
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 28 21:00:54 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  7. 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}.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  8. 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}.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 8K bytes
    - Viewed (0)
Back to top