HomeSort by relevance Sort by last modified time
    Searched full:permits (Results 1 - 25 of 1053) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /libcore/luni/src/main/java/java/util/concurrent/
Semaphore.java 14 * permits. Each {@link #acquire} blocks if necessary until a permit is
82 * available, or zero permits available. When used in this way, the
91 * guarantees about the order in which threads acquire permits. In
97 * #acquire() acquire} methods are selected to obtain permits in the order in
105 * honor the fairness setting, but will take any permits that are
116 * permits at a time. These methods are generally more efficient and
119 * thread B invokes {@code s.acquire(2)}, and two permits become
140 * to represent permits. Subclassed into fair and nonfair
146 Sync(int permits) {
147 setState(permits);
    [all...]
  /external/guava/guava/src/com/google/common/util/concurrent/
RateLimiter.java 36 * A rate limiter. Conceptually, a rate limiter distributes permits at a
38 * available, and then takes it. Once acquired, permits need not be released.
46 * <p>A {@code RateLimiter} is defined primarily by the rate at which permits
47 * are issued. Absent additional configuration, permits will be distributed at a
48 * fixed rate, defined in terms of permits per second. Permits will be distributed
49 * smoothly, with the delay between individual permits being adjusted to ensure
53 * period during which time the permits issued each second steadily increases until
59 * final RateLimiter rateLimiter = RateLimiter.create(2.0); // rate is "2 permits per second"
70 * a rate of 5000 permits per second
    [all...]
SmoothRateLimiter.java 38 * another 100ms. At this rate, serving 15 fresh permits (i.e. for an acquire(15) request)
62 * underutilization. So, the requested permits, by an invocation acquire(permits),
64 * - stored permits (if available)
65 * - fresh permits (for any remaining permits)
78 * using all the remaining 7.0 permits, and the remaining 3.0, we serve them by fresh permits
81 * We already know how much time it takes to serve 3 fresh permits: if the rate is
83 * stored permits? As explained above, there is no unique answer. If we are primaril
    [all...]
  /libcore/jsr166-tests/src/test/java/jsr166/
SemaphoreTest.java 36 PublicSemaphore(int permits) { super(permits); }
37 PublicSemaphore(int permits, boolean fair) { super(permits, fair); }
107 void acquire(Semaphore s, int permits) throws InterruptedException {
108 s.acquire(permits);
117 void acquire(Semaphore s, int permits) {
118 s.acquireUninterruptibly(permits);
127 void acquire(Semaphore s, int permits) {
128 assertTrue(s.tryAcquire(permits));
    [all...]
  /external/dng_sdk/source/
dng_globals.cpp 5 // NOTICE: Adobe permits you to use, modify, and distribute this file in
dng_point.cpp 5 // NOTICE: Adobe permits you to use, modify, and distribute this file in
dng_tag_types.h 5 // NOTICE: Adobe permits you to use, modify, and distribute this file in
dng_uncopyable.h 5 // NOTICE: Adobe permits you to use, modify, and distribute this file in
dng_bottlenecks.cpp 5 // NOTICE: Adobe permits you to use, modify, and distribute this file in
dng_fast_module.h 5 // NOTICE: Adobe permits you to use, modify, and distribute this file in
dng_globals.h 5 // NOTICE: Adobe permits you to use, modify, and distribute this file in
dng_lossless_jpeg.h 5 // NOTICE: Adobe permits you to use, modify, and distribute this file in
dng_tag_types.cpp 5 // NOTICE: Adobe permits you to use, modify, and distribute this file in
dng_tile_iterator.h 5 // NOTICE: Adobe permits you to use, modify, and distribute this file in
dng_tone_curve.h 5 // NOTICE: Adobe permits you to use, modify, and distribute this file in
dng_classes.h 5 // NOTICE: Adobe permits you to use, modify, and distribute this file in
dng_errors.h 5 // NOTICE: Adobe permits you to use, modify, and distribute this file in
dng_file_stream.cpp 5 // NOTICE: Adobe permits you to use, modify, and distribute this file in
dng_file_stream.h 5 // NOTICE: Adobe permits you to use, modify, and distribute this file in
dng_jpeg_image.h 5 // NOTICE: Adobe permits you to use, modify, and distribute this file in
dng_sdk_limits.h 5 // NOTICE: Adobe permits you to use, modify, and distribute this file in
dng_simple_image.h 5 // NOTICE: Adobe permits you to use, modify, and distribute this file in
  /external/clang/test/Sema/
predef.c 15 // rdar://6097892 - GCC permits this insanity.
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
FragmentLauncher.java 23 * Interface that permits elements to display a Fragment.
  /libcore/ojluni/src/main/java/java/security/
AlgorithmConstraints.java 69 public boolean permits(Set<CryptoPrimitive> primitives, method in interface:AlgorithmConstraints
87 public boolean permits(Set<CryptoPrimitive> primitives, Key key); method in interface:AlgorithmConstraints
105 public boolean permits(Set<CryptoPrimitive> primitives, method in interface:AlgorithmConstraints

Completed in 204 milliseconds

1 2 3 4 5 6 7 8 91011>>