Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for AtomicReferenceFieldUpdater (0.08 sec)

  1. android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java

             * Breaking AtomicReferenceFieldUpdater not only forces AggregateFutureState to fall back to
             * another implementation but also forces AbstractFutureState to be able to do the
             * same—hence the try-catch here.
             *
             * (Really, we're fortunate that breaking AtomicReferenceFieldUpdater doesn't break _even
             * more_ things.)
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 33.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/AbstractFutureState.java

          return "UnsafeAtomicHelper";
        }
      }
    
      /** {@link AtomicHelper} based on {@link AtomicReferenceFieldUpdater}. */
      private static final class AtomicReferenceFieldUpdaterAtomicHelper extends AtomicHelper {
        private static final AtomicReferenceFieldUpdater<Waiter, @Nullable Thread> waiterThreadUpdater =
            AtomicReferenceFieldUpdater.<Waiter, @Nullable Thread>newUpdater(
                Waiter.class, Thread.class, "thread");
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt

         */
        val callStackTrace: Any?,
      ) : WeakReference<RealCall>(referent)
    
      private companion object {
        val eventListenerUpdater: AtomicReferenceFieldUpdater<RealCall, EventListener> =
          AtomicReferenceFieldUpdater.newUpdater(
            RealCall::class.java,
            EventListener::class.java,
            "eventListener",
          )
      }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

    // getDeclaredField to throw a NoSuchFieldException when the field is definitely there.
    // Since this class only needs CAS on one field, we can avoid this bug by extending AtomicReference
    // instead of using an AtomicReferenceFieldUpdater. This reference stores Thread instances
    // and DONE/INTERRUPTED - they have a common ancestor of Runnable.
    abstract class InterruptibleTask<T extends @Nullable Object>
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 10K bytes
    - Viewed (0)
Back to top