Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 120 for volatile (0.2 sec)

  1. android/guava/src/com/google/common/base/Suppliers.java

      @VisibleForTesting
      static class MemoizingSupplier<T extends @Nullable Object> implements Supplier<T>, Serializable {
        final Supplier<T> delegate;
        transient volatile boolean initialized;
        // "value" does not need to be volatile; visibility piggy-backs
        // on volatile read of "initialized".
        @CheckForNull transient T value;
    
        MemoizingSupplier(Supplier<T> delegate) {
          this.delegate = checkNotNull(delegate);
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/cache/Striped64.java

       *
       * <p>JVM intrinsics note: It would be possible to use a release-only form of CAS here, if it were
       * provided.
       */
      static final class Cell {
        volatile long p0, p1, p2, p3, p4, p5, p6;
        volatile long value;
        volatile long q0, q1, q2, q3, q4, q5, q6;
    
        Cell(long x) {
          value = x;
        }
    
        final boolean cas(long cmp, long val) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

     *
     * @author Luke Sandberg
     */
    public class AbstractScheduledServiceTest extends TestCase {
    
      volatile Scheduler configuration = newFixedDelaySchedule(0, 10, MILLISECONDS);
      volatile @Nullable ScheduledFuture<?> future = null;
    
      volatile boolean atFixedRateCalled = false;
      volatile boolean withFixedDelayCalled = false;
      volatile boolean scheduleCalled = false;
    
      final ScheduledExecutorService executor =
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

         *
         * As a guide, all critical volatile reads and writes to the count field are marked in code
         * comments.
         */
    
        @Weak final MapMakerInternalMap<K, V, E, S> map;
    
        /**
         * The number of live elements in this segment's region. This does not include unset elements
         * which are awaiting cleanup.
         */
        volatile int count;
    
        /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/Striped64.java

       *
       * <p>JVM intrinsics note: It would be possible to use a release-only form of CAS here, if it were
       * provided.
       */
      static final class Cell {
        volatile long p0, p1, p2, p3, p4, p5, p6;
        volatile long value;
        volatile long q0, q1, q2, q3, q4, q5, q6;
    
        Cell(long x) {
          value = x;
        }
    
        final boolean cas(long cmp, long val) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

     *
     * @author Luke Sandberg
     */
    public class AbstractScheduledServiceTest extends TestCase {
    
      volatile Scheduler configuration = newFixedDelaySchedule(0, 10, MILLISECONDS);
      volatile @Nullable ScheduledFuture<?> future = null;
    
      volatile boolean atFixedRateCalled = false;
      volatile boolean withFixedDelayCalled = false;
      volatile boolean scheduleCalled = false;
    
      final ScheduledExecutorService executor =
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/Suppliers.java

      @VisibleForTesting
      static class MemoizingSupplier<T extends @Nullable Object> implements Supplier<T>, Serializable {
        final Supplier<T> delegate;
        transient volatile boolean initialized;
        // "value" does not need to be volatile; visibility piggy-backs
        // on volatile read of "initialized".
        @CheckForNull transient T value;
    
        MemoizingSupplier(Supplier<T> delegate) {
          this.delegate = checkNotNull(delegate);
        }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/lifecycle/internal/DependencyContext.java

        private final Collection<String> scopesToCollectForAggregatedProjects;
    
        private final Collection<String> scopesToResolveForAggregatedProjects;
    
        private volatile Collection<?> lastDependencyArtifacts = Collections.emptyList();
    
        private volatile int lastDependencyArtifactCount = -1;
    
        public DependencyContext(
                MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Jan 10 12:55:54 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelTransformerContext.java

        final Map<Path, Holder> modelByPath = new ConcurrentHashMap<>();
    
        final Map<GAKey, Holder> modelByGA = new ConcurrentHashMap<>();
    
        public static class Holder {
            private volatile boolean set;
            private volatile Model model;
    
            Holder() {}
    
            Holder(Model model) {
                this.model = Objects.requireNonNull(model);
                this.set = true;
            }
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/LocalCache.java

         * respect to reads.
         *
         * As a guide, all critical volatile reads and writes to the count field are marked in code
         * comments.
         */
    
        @Weak final LocalCache<K, V> map;
    
        /** The number of live elements in this segment's region. */
        volatile int count;
    
        /** The weight of the live elements in this segment's region. */
        @GuardedBy("this")
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
Back to top