Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for veld (0.47 sec)

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

     * invoke methods, they invoke methods on the {@code ForwardingBlockingQueue}.
     *
     * @author Raimundo Mirisola
     * @param <E> the type of elements held in this collection
     * @since 4.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public abstract class ForwardingBlockingQueue<E> extends ForwardingQueue<E>
        implements BlockingQueue<E> {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 3K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/cache/ChainBenchmark.java

        chain = null;
        for (int i = 0; i < length; i++) {
          Object key = new Object();
          // TODO(b/145386688): This access should be guarded by 'this.segment', which is not currently
          // held
          chain = segment.newEntry(key, cache.hash(key), chain);
          if (i == 0) {
            head = chain;
          }
        }
      }
    
      @SuppressWarnings("GuardedBy")
      @Benchmark
      int time(int reps) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

      /** Marker interface for {@link InternalEntry} implementations for weak values. */
      interface WeakValueEntry<K, V, E extends InternalEntry<K, V, E>> extends InternalEntry<K, V, E> {
        /** Gets the weak value reference held by entry. */
        WeakValueReference<K, V, E> getValueReference();
      }
    
      @SuppressWarnings("unchecked") // impl never uses a parameter or returns any non-null value
      static <K, V, E extends InternalEntry<K, V, E>>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/Monitor.java

      //    places you'll have guard.enter()/guard.leave() even though
      //    it's the same lock being acquired underneath. Always using
      //    monitor.enterXXX()/monitor.leave() will make it really clear
      //    which lock is held at any point in the code.
      //
      // 3. I think "enterWhen(notEmpty)" reads better than "notEmpty.enter()".
      //
      // TODO(user): Implement ReentrantLock features:
      //    - toString() method
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        assertEquals(originalMap, map);
    
        for (int i = 1; i <= originalCount * 2; i *= 2) {
          if (i > 1) {
            // TODO(b/145386688): This access should be guarded by 'segment', which is not currently
            // held
            segment.expand();
          }
          assertEquals(i, segment.table.length());
          assertEquals(originalCount, countLiveEntries(map));
          assertEquals(originalCount, segment.count);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        assertEquals(originalMap, map);
    
        for (int i = 1; i <= originalCount * 2; i *= 2) {
          if (i > 1) {
            // TODO(b/145386688): This access should be guarded by 'segment', which is not currently
            // held
            segment.expand();
          }
          assertEquals(i, segment.table.length());
          assertEquals(originalCount, countLiveEntries(map));
          assertEquals(originalCount, segment.count);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

     * control over lock behavior to individual components.
     *
     * <p>Applications are encouraged to use a {@code CycleDetectingLockFactory} to create any locks for
     * which external/unmanaged code is executed while the lock is held. (See caveats under
     * <strong>Performance</strong>).
     *
     * <p><strong>Cycle Detection</strong>
     *
     * <p>Deadlocks can arise when locks are acquired in an order that forms a cycle. In a simple
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/ExecutionList.java

        // is likely to be a bug anyway.
    
        // N.B. All writes to the list and the next pointers must have happened before the above
        // synchronized block, so we can iterate the list without the lock held here.
        RunnableExecutorPair reversedList = null;
        while (list != null) {
          RunnableExecutorPair tmp = list;
          list = list.next;
          tmp.next = reversedList;
          reversedList = tmp;
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

         * hold the synchronizer. This synchronizer is used to implement the blocking and waiting calls
         * as well as to handle state changes in a thread-safe manner. The current state of the future
         * is held in the Sync state, and the lock is released whenever the state changes to {@link
         * #COMPLETED}, {@link #CANCELLED}, or {@link #INTERRUPTED}
         *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 13.6K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

     *       res = (seqNum &lt; other.seqNum ? -1 : 1);
     *     return res;
     *   }
     * }</pre>
     *
     * @author Doug Lea
     * @author Justin T. Sampson
     * @param <E> the type of elements held in this collection
     */
    public class MonitorBasedPriorityBlockingQueue<E> extends AbstractQueue<E>
        implements BlockingQueue<E> {
    
      // Based on revision 1.55 of PriorityBlockingQueue by Doug Lea, from
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 19.5K bytes
    - Viewed (0)
Back to top