Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 586 for Chere (0.16 sec)

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

       * {@link MoreExecutors#directExecutor}. Normally, when the first future completes, all the other
       * tasks would be called recursively. Here, we detect that the delegate executor is executing
       * inline, and maintain a queue to dispatch tasks iteratively. There is one instance of this class
       * per call to submit() or submitAsync(), and each instance supports only one call to execute().
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/Striped.java

            super(referent, queue);
            this.index = index;
          }
        }
      }
    
      /**
       * Implementation of Striped where up to 2^k stripes can be represented, using a ConcurrentMap
       * where the key domain is [0..2^k). To map a user key into a stripe, we take a k-bit slice of the
       * user key's (smeared) hashCode(). The stripes are lazily initialized and are weakly referenced.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 10 20:55:18 GMT 2023
    - 20.3K bytes
    - Viewed (1)
  3. android/guava/src/com/google/common/util/concurrent/AbstractService.java

       * or after it has returned. If startup fails, the invocation should cause a call to {@link
       * #notifyFailed(Throwable)} instead.
       *
       * <p>This method should return promptly; prefer to do work on a different thread where it is
       * convenient. It is invoked exactly once on service startup, even when {@link #startAsync} is
       * called multiple times.
       */
      @ForOverride
      protected abstract void doStart();
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 18:32:03 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/base/StopwatchBenchmark.java

          Stopwatch s = Stopwatch.createStarted();
          // here is where you would do something
          total += s.elapsed(TimeUnit.NANOSECONDS);
        }
        return total;
      }
    
      @Benchmark
      long manual(int reps) {
        long total = 0;
        for (int i = 0; i < reps; i++) {
          long start = System.nanoTime();
          // here is where you would do something
          total += (System.nanoTime() - start);
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.5K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/base/StopwatchBenchmark.java

          Stopwatch s = Stopwatch.createStarted();
          // here is where you would do something
          total += s.elapsed(TimeUnit.NANOSECONDS);
        }
        return total;
      }
    
      @Benchmark
      long manual(int reps) {
        long total = 0;
        for (int i = 0; i < reps; i++) {
          long start = System.nanoTime();
          // here is where you would do something
          total += (System.nanoTime() - start);
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/reflect/TypeToken.java

       *   return new TypeToken<Map<K, V>>() {}
       *       .where(new TypeParameter<K>() {}, keyType)
       *       .where(new TypeParameter<V>() {}, valueType);
       * }
       * }</pre>
       *
       * @param <X> The parameter type
       * @param typeParam the parameter type variable
       * @param typeArg the actual type to substitute
       */
      /*
       * TODO(cpovirk): Is there any way for us to support TypeParameter instances for type parameters
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 53.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/reflect/TypeParameter.java

    import javax.annotation.CheckForNull;
    
    /**
     * Captures a free type variable that can be used in {@link TypeToken#where}. For example:
     *
     * <pre>{@code
     * static <T> TypeToken<List<T>> listOf(Class<T> elementType) {
     *   return new TypeToken<List<T>>() {}
     *       .where(new TypeParameter<T>() {}, elementType);
     * }
     * }</pre>
     *
     * @author Ben Yu
     * @since 12.0
     */
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 05 17:43:40 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/CompactLinkedHashSet.java

       */
      @CheckForNull private transient int[] successor;
    
      /** Pointer to the first node in the linked list, or {@code ENDPOINT} if there are no entries. */
      private transient int firstEntry;
    
      /** Pointer to the last node in the linked list, or {@code ENDPOINT} if there are no entries. */
      private transient int lastEntry;
    
      CompactLinkedHashSet() {
        super();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ConcurrentHashMultiset.java

              // we can just do that work here.
              AtomicInteger newCounter = new AtomicInteger(occurrences);
              if ((countMap.putIfAbsent(element, newCounter) == null)
                  || countMap.replace(element, existingCounter, newCounter)) {
                return 0;
              }
              break;
            }
          }
    
          // If we're still here, there was a race, so just try again.
        }
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/Futures.java

      //
      // In the constructor of AbstractCatchingFuture, the delegate future is assigned to a field
      // 'inputFuture'. That field is non-final and non-volatile. There are 2 places where the
      // 'inputFuture' field is read and where we will have to consider visibility of the write
      // operation in the constructor.
      //
      // 1. In the listener that performs the callback. In this case it is fine since inputFuture is
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
Back to top