Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 170 for striped (0.61 sec)

  1. 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);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  2. 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);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  3. 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);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4K bytes
    - Viewed (0)
  4. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/ProducerGuard.java

                        producing.notifyAll();
                    }
                }
            }
        }
    
        private static class StripedProducerGuard<T> extends ProducerGuard<T> {
            private final Striped<Lock> locks = Striped.lock(Runtime.getRuntime().availableProcessors() * 4);
    
            @Override
            public <V> V guardByKey(T key, Supplier<V> supplier) {
                Lock lock = locks.get(key);
                lock.lock();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:31 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/ProducerGuardTest.groovy

                            }
                        })
                    }
                }
            }
    
            then:
            calls.get() == 100
    
            where:
            guard << [ProducerGuard.serial(), ProducerGuard.striped(), ProducerGuard.adaptive()]
        }
    
        def "does not call factories with the same key concurrently"() {
            def concurrentCalls = new AtomicInteger()
    
            when:
            async {
                100.times {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cache_striped.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package cache
    
    import (
    	"hash/fnv"
    	"time"
    )
    
    // split cache lookups across N striped caches
    type stripedCache struct {
    	stripeCount uint32
    	hashFunc    func(string) uint32
    	caches      []cache
    }
    
    type hashFunc func(string) uint32
    type newCacheFunc func() cache
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 22 17:16:59 UTC 2018
    - 1.6K bytes
    - Viewed (0)
  7. src/main/webapp/WEB-INF/view/admin/log/admin_log.jsp

                                    <div class="row">
                                        <div class="col-sm-12">
                                            <table class="table table-bordered table-striped">
                                                <thead>
                                                <tr>
                                                    <th><la:message key="labels.log_file_name"/></th>
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Wed Feb 12 20:25:27 UTC 2020
    - 4K bytes
    - Viewed (0)
  8. src/main/webapp/WEB-INF/view/admin/user/admin_user.jsp

                                    <div class="row">
                                        <div class="col-sm-12">
                                            <table class="table table-bordered table-striped">
                                                <thead>
                                                <tr>
                                                    <th><la:message key="labels.user_list_name"/></th>
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 13 07:47:04 UTC 2020
    - 4.5K bytes
    - Viewed (0)
  9. src/main/webapp/WEB-INF/view/admin/accesstoken/admin_accesstoken.jsp

                                    <div class="row">
                                        <div class="col-sm-12">
                                            <table class="table table-bordered table-striped">
                                                <thead>
                                                <tr>
                                                    <th><la:message
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Wed Feb 12 20:25:27 UTC 2020
    - 4.7K bytes
    - Viewed (0)
  10. src/main/webapp/WEB-INF/view/admin/dict/admin_dict.jsp

                                    </div>
                                </c:if>
                                <c:if test="${fn:length(dictFiles) > 0}">
                                    <table class="table table-bordered table-striped">
                                        <thead>
                                        <tr>
                                            <th><la:message key="labels.dictionary_name"/></th>
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 13 07:47:04 UTC 2020
    - 4K bytes
    - Viewed (0)
Back to top