Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 131 for slot (0.14 sec)

  1. guava/src/com/google/common/cache/Striped64.java

       * the capacity, it is doubled in size unless some other thread
       * holds the lock. If a hashed slot is empty, and lock is
       * available, a new Cell is created. Otherwise, if the slot
       * exists, a CAS is tried.  Retries proceed by "double hashing",
       * using a secondary hash (Marsaglia XorShift) to try to find a
       * free slot.
       *
       * The table size is capped because, when there are more threads
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/cache/Striped64.java

       * the capacity, it is doubled in size unless some other thread
       * holds the lock. If a hashed slot is empty, and lock is
       * available, a new Cell is created. Otherwise, if the slot
       * exists, a CAS is tried.  Retries proceed by "double hashing",
       * using a secondary hash (Marsaglia XorShift) to try to find a
       * free slot.
       *
       * The table size is capped because, when there are more threads
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/Striped64.java

       * the capacity, it is doubled in size unless some other thread
       * holds the lock. If a hashed slot is empty, and lock is
       * available, a new Cell is created. Otherwise, if the slot
       * exists, a CAS is tried.  Retries proceed by "double hashing",
       * using a secondary hash (Marsaglia XorShift) to try to find a
       * free slot.
       *
       * The table size is capped because, when there are more threads
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java

     *
     * @author Nishant Thakkar
     */
    public class FuturesTransformAsyncTest extends AbstractChainedListenableFutureTest<String> {
      protected static final int SLOW_OUTPUT_VALID_INPUT_DATA = 2;
      protected static final int SLOW_FUNC_VALID_INPUT_DATA = 3;
      private static final String RESULT_DATA = "SUCCESS";
    
      private SettableFuture<String> outputFuture;
      // Signals that the function is waiting to complete
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/IteratorsTest.java

          }
        }.test();
      }
    
      @GwtIncompatible // slow (~5s)
      public void testConcatNoIteratorsYieldsEmpty() {
        new EmptyIteratorTester() {
          @Override
          protected Iterator<Integer> newTargetIterator() {
            return Iterators.concat();
          }
        }.test();
      }
    
      @GwtIncompatible // slow (~5s)
      public void testConcatOneEmptyIteratorYieldsEmpty() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/Striped.java

            // We only ever register ArrayReferences with the queue so this is always safe.
            ArrayReference<? extends L> arrayRef = (ArrayReference<? extends L>) ref;
            // Try to clear out the array slot, n.b. if we fail that is fine, in either case the
            // arrayRef will be out of the array after this step.
            locks.compareAndSet(arrayRef.index, arrayRef, null);
          }
        }
    
        @Override
    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)
  7. android/guava-tests/test/com/google/common/io/LineBufferTest.java

    import java.nio.CharBuffer;
    import java.util.Arrays;
    import java.util.List;
    
    /**
     * Unit tests for {@link LineBuffer} and {@link LineReader}.
     *
     * @author Chris Nokleberg
     */
    @AndroidIncompatible // occasionally very slow
    public class LineBufferTest extends IoTestCase {
    
      public void testProcess() throws IOException {
        bufferHelper("");
        bufferHelper("\n", "\n");
        bufferHelper("\r\n", "\r\n");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

          assertEquals(BigIntegerMath.sqrt(x, floorWasOdd ? HALF_UP : HALF_DOWN), halfEven);
        }
      }
    
      @GwtIncompatible // TODO
      @AndroidIncompatible // slow
      public void testDivNonZero() {
        for (BigInteger p : NONZERO_BIGINTEGER_CANDIDATES) {
          for (BigInteger q : NONZERO_BIGINTEGER_CANDIDATES) {
            for (RoundingMode mode : ALL_SAFE_ROUNDING_MODES) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

          assertEquals(BigIntegerMath.sqrt(x, floorWasOdd ? HALF_UP : HALF_DOWN), halfEven);
        }
      }
    
      @GwtIncompatible // TODO
      @AndroidIncompatible // slow
      public void testDivNonZero() {
        for (BigInteger p : NONZERO_BIGINTEGER_CANDIDATES) {
          for (BigInteger q : NONZERO_BIGINTEGER_CANDIDATES) {
            for (RoundingMode mode : ALL_SAFE_ROUNDING_MODES) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/HashMultisetTest.java

        assertEquals(2, copy.size());
        assertSame(copy, copy.iterator().next().member);
      }
    
      /*
       * The behavior of toString() and iteration is tested by LinkedHashMultiset,
       * which shares a lot of code with HashMultiset and has deterministic
       * iteration order.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.4K bytes
    - Viewed (0)
Back to top