Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for OverflowAvoidingLockSupport (0.09 seconds)

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

     * signal on 32 bit devices running Android Q.
     */
    @GwtIncompatible
    final class OverflowAvoidingLockSupport {
      // Represents the max nanoseconds representable on a linux timespec with a 32 bit tv_sec
      static final long MAX_NANOSECONDS_THRESHOLD = (1L + Integer.MAX_VALUE) * 1_000_000_000L - 1L;
    
      private OverflowAvoidingLockSupport() {}
    
      static void parkNanos(@Nullable Object blocker, long nanos) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Feb 10 11:51:21 GMT 2026
    - 1.6K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/util/concurrent/ListenableFutureTask.java

        long timeoutNanos = unit.toNanos(timeout);
        if (timeoutNanos <= OverflowAvoidingLockSupport.MAX_NANOSECONDS_THRESHOLD) {
          return super.get(timeout, unit);
        }
        // Waiting 68 years should be enough for any program.
        return super.get(
            min(timeoutNanos, OverflowAvoidingLockSupport.MAX_NANOSECONDS_THRESHOLD), NANOSECONDS);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Feb 10 11:51:21 GMT 2026
    - 4.2K bytes
    - Click Count (0)
Back to Top