ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/Semaphore.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/Semaphore.java (file contents):
Revision 1.72 by jsr166, Sun Jan 18 20:28:32 2015 UTC vs.
Revision 1.73 by jsr166, Tue Feb 17 18:55:39 2015 UTC

# Line 20 | Line 20 | import java.util.concurrent.locks.Abstra
20   * <p>Semaphores are often used to restrict the number of threads than can
21   * access some (physical or logical) resource. For example, here is
22   * a class that uses a semaphore to control access to a pool of items:
23 < *  <pre> {@code
23 > * <pre> {@code
24   * class Pool {
25   *   private static final int MAX_AVAILABLE = 100;
26   *   private final Semaphore available = new Semaphore(MAX_AVAILABLE, true);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines