Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for Active (0.16 sec)

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

          --ntasks;
          int active = 1;
    
          while (true) {
            Future<T> f = futureQueue.poll();
            if (f == null) {
              if (ntasks > 0) {
                --ntasks;
                futures.add(submitAndAddQueueListener(executorService, it.next(), futureQueue));
                ++active;
              } else if (active == 0) {
                break;
              } else if (timed) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/Monitor.java

       * need to be signalled because it is not known which if any of them have waiters (and hasWaiters
       * can't be used reliably because of a check-then-act race). With our Monitor guards, we only
       * signal the first active guard that is satisfied. But the corresponding thread may have already
       * been interrupted and is waiting to reacquire the lock while still registered in activeGuards,
    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)
  3. guava/src/com/google/common/cache/LocalCache.java

        /**
         * Returns true if this reference contains an active value, meaning one that is still considered
         * present in the cache. Active values consist of live values, which are returned by cache
         * lookups, and dead values, which have been evicted but awaiting removal. Non-active values
         * consist strictly of loading values, though during refresh a value may be both active and
         * loading.
         */
        boolean isActive();
    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)
  4. guava/src/com/google/common/cache/CacheBuilder.java

      long getExpireAfterAccessNanos() {
        return (expireAfterAccessNanos == UNSET_INT)
            ? DEFAULT_EXPIRATION_NANOS
            : expireAfterAccessNanos;
      }
    
      /**
       * Specifies that active entries are eligible for automatic refresh once a fixed duration has
       * elapsed after the entry's creation, or the most recent replacement of its value. The semantics
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

        // In contrast to the JVM, Kotlin native throws an Illegal argument exception in this case
        // (which seems to make more sense).
        try {
          UnsignedInts.parseUnsignedInt("0", Character.MIN_RADIX - 1);
          fail();
        } catch (NumberFormatException expected) {
        } catch (IllegalArgumentException expected) {
          // Kotlin native, see above
        }
    
        try {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/reflect/Types.java

       * implementation respects symmetry. Moreover, we don't want to reconstruct a native type variable
       * {@code <A>} using our implementation unless some of its bounds have changed in resolution. This
       * avoids creating unequal TypeVariable implementation unnecessarily. When the bounds do change,
       * however, it's fine for the synthetic TypeVariable to be unequal to any native TypeVariable
       * anyway.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        // no notification sent with removeLoadingValue
        assertTrue(map.removalNotificationQueue.isEmpty());
        assertEquals(0, segment.count);
        assertNull(table.get(0));
    
        // active
        Object value = new Object();
        DummyValueReference<Object, Object> previousRef = DummyValueReference.create(value);
        valueRef = new LoadingValueReference<>(previousRef);
        entry.setValueReference(valueRef);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        // no notification sent with removeLoadingValue
        assertTrue(map.removalNotificationQueue.isEmpty());
        assertEquals(0, segment.count);
        assertNull(table.get(0));
    
        // active
        Object value = new Object();
        DummyValueReference<Object, Object> previousRef = DummyValueReference.create(value);
        valueRef = new LoadingValueReference<>(previousRef);
        entry.setValueReference(valueRef);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/cache/LocalCache.java

        /**
         * Returns true if this reference contains an active value, meaning one that is still considered
         * present in the cache. Active values consist of live values, which are returned by cache
         * lookups, and dead values, which have been evicted but awaiting removal. Non-active values
         * consist strictly of loading values, though during refresh a value may be both active and
         * loading.
         */
        boolean isActive();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

        // In contrast to the JVM, Kotlin native throws an Illegal argument exception in this case
        // (which seems to make more sense).
        try {
          UnsignedInts.parseUnsignedInt("0", Character.MIN_RADIX - 1);
          fail();
        } catch (NumberFormatException expected) {
        } catch (IllegalArgumentException expected) {
          // Kotlin native, see above
        }
    
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 12.7K bytes
    - Viewed (1)
Back to top