- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for lazySet (0.24 sec)
-
guava/src/com/google/common/util/concurrent/AtomicDouble.java
value = next; } /** * Eventually sets to the given value. * * @param newValue the new value */ public final void lazySet(double newValue) { long next = doubleToRawLongBits(newValue); updater.lazySet(this, next); } /** * Atomically sets to the given value and returns the old value. * * @param newValue the new value * @return the previous 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) -
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) -
android/guava/src/com/google/common/util/concurrent/AtomicDouble.java
value.set(next); } /** * Eventually sets to the given value. * * @param newValue the new value */ public final void lazySet(double newValue) { long next = doubleToRawLongBits(newValue); value.lazySet(next); } /** * Atomically sets to the given value and returns the old value. * * @param newValue the new value * @return the previous value
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Feb 28 21:00:54 UTC 2022 - 7.2K bytes - Viewed (0) -
android/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: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Apr 04 09:45:04 UTC 2023 - 8K bytes - Viewed (0) -
platforms/core-runtime/functional/src/test/groovy/org/gradle/internal/lazy/LazyTest.groovy
import java.util.concurrent.CyclicBarrier import java.util.concurrent.Executors import java.util.concurrent.TimeUnit import java.util.concurrent.atomic.AtomicInteger import java.util.function.Supplier class LazyTest extends Specification { def "#factoryName supplier code is executed once with use"() { def supplier = Mock(Supplier) when: def lazy = factory(supplier) then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:22:02 UTC 2023 - 5.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/DependencyHandlerProviderIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 5.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/internal/lazyregexp/lazyre.go
Russ Cox <******@****.***> 1689185292 -0400
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 12 20:38:21 UTC 2023 - 1.8K bytes - Viewed (0) -
src/internal/lazyregexp/lazyre.go
Daniel Martà <******@****.***> 1551304971 +0000
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 27 23:49:01 UTC 2019 - 1.8K bytes - Viewed (0) -
src/crypto/x509/cert_pool.go
if err != nil { continue } var lazyCert struct { sync.Once v *Certificate } s.addCertFunc(sha256.Sum224(cert.Raw), string(cert.RawSubject), func() (*Certificate, error) { lazyCert.Do(func() { // This can't fail, as the same bytes already parsed above. lazyCert.v, _ = ParseCertificate(certBytes) certBytes = nil }) return lazyCert.v, nil }, nil) ok = true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 19:41:40 UTC 2023 - 8.9K bytes - Viewed (0)