Searched defs:reduction (Results 1 - 2 of 2) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/
H A DSemaphore.java644 * reduction. This method can be useful in subclasses that use
649 * @param reduction the number of permits to remove
650 * @throws IllegalArgumentException if {@code reduction} is negative
652 protected void reducePermits(int reduction) { argument
653 if (reduction < 0) throw new IllegalArgumentException();
654 sync.reducePermits(reduction);
/libcore/jsr166-tests/src/test/java/jsr166/
H A DSemaphoreTest.java44 public void reducePermits(int reduction) { argument
45 super.reducePermits(reduction);

Completed in 152 milliseconds