- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for lazySet (0.22 sec)
-
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: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 02:42:09 UTC 2024 - 10.3K bytes - Viewed (0) -
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: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 02:42:09 UTC 2024 - 14.6K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java
* Eventually sets the element at position {@code i} to the given value. * * @param i the index * @param newValue the new value */ public final void lazySet(int i, double newValue) { long next = doubleToRawLongBits(newValue); longs.lazySet(i, next); } /** * Atomically sets the element at position {@code i} to the given value and returns the old value. * * @param i the index
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 14 17:55:55 UTC 2024 - 10.3K bytes - Viewed (0)