Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for lazyWeakCustom (0.1 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java

            .add(new Striped.LargeLazyStriped<Semaphore>(50, SEMAPHORE_SUPPLER))
            .add(new Striped.LargeLazyStriped<Semaphore>(64, SEMAPHORE_SUPPLER))
            .add(Striped.lazyWeakCustom(50, FAIR_LOCK_SUPPLER))
            .add(Striped.lazyWeakCustom(64, FAIR_LOCK_SUPPLER))
            .build();
      }
    
      private static Iterable<Striped<?>> allImplementations() {
        return concat(strongImplementations(), weakImplementations());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 26 12:58:35 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/StripedTest.java

            .add(new Striped.LargeLazyStriped<Semaphore>(50, SEMAPHORE_SUPPLER))
            .add(new Striped.LargeLazyStriped<Semaphore>(64, SEMAPHORE_SUPPLER))
            .add(Striped.lazyWeakCustom(50, FAIR_LOCK_SUPPLER))
            .add(Striped.lazyWeakCustom(64, FAIR_LOCK_SUPPLER))
            .build();
      }
    
      private static Iterable<Striped<?>> allImplementations() {
        return concat(strongImplementations(), weakImplementations());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 26 12:58:35 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/Striped.java

       * reentrant.
       *
       * @param stripes the minimum number of stripes (locks) required
       * @return a new {@code Striped<Lock>}
       */
      public static Striped<Lock> lazyWeakLock(int stripes) {
        return lazyWeakCustom(stripes, () -> new ReentrantLock(false));
      }
    
      /**
       * Creates a {@code Striped<L>} with lazily initialized, weakly referenced locks. Every lock is
       * obtained from the passed supplier.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 26 12:58:35 UTC 2024
    - 20.6K bytes
    - Viewed (0)
Back to top