Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for lazySet (0.09 sec)

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

        }
      }
    
      /** get returns the last value lazySet at index by same thread */
      public void testGetLazySet() {
        AtomicDoubleArray aa = new AtomicDoubleArray(VALUES.length);
        for (int i = 0; i < VALUES.length; i++) {
          assertBitEquals(0.0, aa.get(i));
          aa.lazySet(i, VALUES[i]);
          assertBitEquals(VALUES[i], aa.get(i));
          aa.lazySet(i, -3.0);
          assertBitEquals(-3.0, aa.get(i));
        }
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

          at.set(x);
          assertBitEquals(x, at.get());
        }
      }
    
      /** get returns the last value lazySet in same thread */
      public void testGetLazySet() {
        AtomicDouble at = new AtomicDouble(1.0);
        assertBitEquals(1.0, at.get());
        for (double x : VALUES) {
          at.lazySet(x);
          assertBitEquals(x, 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/src/com/google/common/util/concurrent/AbstractFuture.java

        }
    
        @Override
        void putThread(Waiter waiter, Thread newValue) {
          waiterThreadUpdater.lazySet(waiter, newValue);
        }
    
        @Override
        void putNext(Waiter waiter, @CheckForNull Waiter newValue) {
          waiterNextUpdater.lazySet(waiter, newValue);
        }
    
        @Override
        boolean casWaiters(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 62.8K bytes
    - Viewed (1)
  4. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

        }
    
        @Override
        void putThread(Waiter waiter, Thread newValue) {
          waiterThreadUpdater.lazySet(waiter, newValue);
        }
    
        @Override
        void putNext(Waiter waiter, @CheckForNull Waiter newValue) {
          waiterNextUpdater.lazySet(waiter, newValue);
        }
    
        @Override
        boolean casWaiters(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 63.1K bytes
    - Viewed (1)
Back to top