Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for weakCompareAndSet (0.12 sec)

  1. 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: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  2. 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: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  3. 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: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 10.2K bytes
    - Viewed (0)
Back to top