Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,082 for stripes (0.21 sec)

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

       *
       * @param stripes the minimum number of stripes (locks) required
       * @return a new {@code Striped<Lock>}
       */
      public static Striped<Lock> lazyWeakLock(int stripes) {
        return lazy(stripes, () -> new ReentrantLock(false));
      }
    
      private static <L> Striped<L> lazy(int stripes, Supplier<L> supplier) {
        return stripes < LARGE_LAZY_CUTOFF
            ? new SmallLazyStriped<L>(stripes, supplier)
    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)
  2. guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java

        EAGER {
          @Override
          Striped<Lock> get(int stripes) {
            return Striped.lock(stripes);
          }
        },
        LAZY_SMALL {
          @Override
          Striped<Lock> get(int stripes) {
            return new Striped.SmallLazyStriped<>(stripes, LOCK_SUPPLIER);
          }
        },
        LAZY_LARGE {
          @Override
          Striped<Lock> get(int stripes) {
            return new Striped.LargeLazyStriped<>(stripes, LOCK_SUPPLIER);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java

        EAGER {
          @Override
          Striped<Lock> get(int stripes) {
            return Striped.lock(stripes);
          }
        },
        LAZY_SMALL {
          @Override
          Striped<Lock> get(int stripes) {
            return new Striped.SmallLazyStriped<>(stripes, LOCK_SUPPLIER);
          }
        },
        LAZY_LARGE {
          @Override
          Striped<Lock> get(int stripes) {
            return new Striped.LargeLazyStriped<>(stripes, LOCK_SUPPLIER);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/StripedTest.java

        for (Striped<?> striped : allImplementations()) {
          assertBasicInvariants(striped);
        }
      }
    
      private static void assertBasicInvariants(Striped<?> striped) {
        Set<Object> observed = Sets.newIdentityHashSet(); // for the sake of weakly referenced locks.
        // this gets the stripes with #getAt(index)
        for (int i = 0; i < striped.size(); i++) {
          Object object = striped.getAt(i);
          assertNotNull(object);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 8.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java

        for (Striped<?> striped : allImplementations()) {
          assertBasicInvariants(striped);
        }
      }
    
      private static void assertBasicInvariants(Striped<?> striped) {
        Set<Object> observed = Sets.newIdentityHashSet(); // for the sake of weakly referenced locks.
        // this gets the stripes with #getAt(index)
        for (int i = 0; i < striped.size(); i++) {
          Object object = striped.getAt(i);
          assertNotNull(object);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 8.4K bytes
    - Viewed (0)
  6. src/main/webapp/css/bootstrap.min.css

    ease}@media (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:1rem 1rem}.progress-bar-animated{-webkit-animation:progress-bar-stripes 1s linear infinite;animation:progress-bar-stripes 1s linear infinite}@media (prefers-reduced-motion:reduce){.progress-bar-animated{-webkit...
    CSS
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Wed Dec 25 08:05:52 GMT 2019
    - 155.8K bytes
    - Viewed (0)
  7. src/main/webapp/css/admin/bootstrap.min.css

    ease}@media (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:1rem 1rem}.progress-bar-animated{-webkit-animation:progress-bar-stripes 1s linear infinite;animation:progress-bar-stripes 1s linear infinite}@media (prefers-reduced-motion:reduce){.progress-bar-animated{-webkit...
    CSS
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Fri Feb 07 10:28:50 GMT 2020
    - 155.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Strings.java

     *
     * @author Kevin Bourrillion
     * @since 3.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class Strings {
      private Strings() {}
    
      /**
       * Returns the given string if it is non-null; the empty string otherwise.
       *
       * @param string the string to test and possibly return
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:47:03 GMT 2021
    - 12.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/util/Strings.java

    import org.slf4j.LoggerFactory;
    
    import jcifs.Configuration;
    import jcifs.RuntimeCIFSException;
    
    
    /**
     * @author mbechler
     *
     */
    public final class Strings {
    
        private static final Logger log = LoggerFactory.getLogger(Strings.class);
    
        private static final Charset UNI_ENCODING = Charset.forName("UTF-16LE");
        private static final Charset ASCII_ENCODING = Charset.forName("US-ASCII");
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Strings.java

     *
     * @author Kevin Bourrillion
     * @since 3.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class Strings {
      private Strings() {}
    
      /**
       * Returns the given string if it is non-null; the empty string otherwise.
       *
       * @param string the string to test and possibly return
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Apr 09 00:49:18 GMT 2021
    - 12.3K bytes
    - Viewed (0)
Back to top